← All modules
Modules 9
Structs, Classes, and Object Lifetime
Constructors, destructors, copy and move, and the Rules of Three/Five/Zero.
- 9.1struct versus class
- 9.2Member Variables and Member Functions
- 9.3Constructors and Initializer Lists
- 9.4Destructors and RAII, Properly
- 9.5this
- 9.6Access Control and Encapsulation
- 9.7Copy Constructor and Copy Assignment
- 9.8The Rule of Three
- 9.9Move Constructor and Move Assignment
- 9.10std::move
- 9.11The Rule of Five and the Rule of Zero
- 9.12= default and = delete