C++ Inheritance Part IV: Sorting Vectors of Smart Pointers VIDEO
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.
Other Videos By Bill Kerney 2022-04-25 Symbolism and Semantics 2022-04-23 Shapes (Linear Algebra review), Bitwise Operations Part II, Vim Macros 2022-04-22 Sea Shanty Workshop 2022-04-21 Operator() and [], Writing Tests, Bitwise Operations 2022-04-20 Set Theory Part I 2022-04-19 Quadtrees in 30 minutes 2022-04-18 Inheritance Part VI, Constexpr, Inline 2022-04-18 Corporate Censorship + Qualifiers 2022-04-08 Inheritance Part V; Heaps 2022-04-08 Corporate Censorship 2022-04-06 C++ Inheritance Part IV: Sorting Vectors of Smart Pointers 2022-04-06 Midterm II Review 2022-04-04 Inheritance Part III - Virtual/Override/Final, Abstract Classes, Multiple Inheritance 2022-04-04 Is/Ought Problem, Naturalistic Fallacy, Beautiful Computer Science 2022-04-01 Inheritance in C++ Part 2: Smart Pointer Vectors, Slicing, Virtual Functions 2022-04-01 Framing Part II 2022-03-30 Inheritance in C++ Part I 2022-03-30 Framing 2022-03-28 Automating the Boring stuff using UNIX Shell Scripting 2022-03-28 Deductive, Inductive, Abductive Reasoning 2022-03-25 Quadratic and Double Hashing
Tags: csci 41
c++
inheritance
smart pointer
shared_ptr
sorting