Shared Pointers
- Again chapter 7.
- In this case there can be many pointers to the same memory
- The class keeps a count.
- Copy constructor, assignment, constructor increase the count.
- assignment, destructor decrease the count.
- When the count reaches 0, the memory is freed.
- Can be to a dynamic array.
- Most of the same members as unique_ptr.
- Look at ListT.h