Smart pointers
- Textbook page 382
unique_ptr– one reference only!shared_ptr— reference counts modify by destructors and assignmentsweak_ptr— when a little help is needed
Parameters in C++ (and others)
- Chapter 9 lecture notes — pp 14–18
- C++ references: Wikipedia & ISOCPP
- glvalue, prvalue, xvalue, lvalue, rvalue
- Examples from the textbook: