17. Construction, Cleanup, Copy, and Move
Ignorance more frequently begets confidence than does knowledge.
– Charles Darwin
• Constructors and Destructors
Constructors and Invariants; Destructors and Resources; Base and Member Destructors; Calling Constructors and Destructors; virtual Destructors
Initialization Without Constructors; Initialization Using Constructors; Default Constructors; Initializer-List Constructors
• Member and Base Initialization
Member Initialization; Base Initializers; Delegating Constructors; In-Class Initializers; static Member Initialization
• Generating Default Operations
Explicit Defaults; Default Operations; Using Default Operations; deleted Functions ...
Get The C++ Programming Language, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.