C++ Inheritance Part IV: Sorting Vectors of Smart Pointers

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=PPQ7hAcZMTg



Duration: 34:23
237 views
2


C++'s inheritance is a lot clunkier than Java's, but with smart pointers (shared_ptr and unique_ptr mainly) you can make it workable. That said, a lot of students were asking how they could sort the vector or list of shared pointers, so today we went over that.







Tags:
csci 41
c++
inheritance
smart pointer
shared_ptr
sorting