Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of special member functions in C++ through this comprehensive conference talk from C++ on Sea 2023. Delve into the nuances of constructors, destructors, copy and move semantics, and automatic generation by the compiler. Learn about the rule of all or zero, various constructor forms, and when to implement copy/move operations. Gain insights into definition rules, implementation idioms, and testing strategies for special member functions. Discover how to handle common scenarios like class state initialization and reinitialization while creating consistent implementations. Equip yourself with a clear understanding of special member functions to become a more confident and effective C++ software engineer.
Syllabus
Introduction
Agenda
About me
Fundamentals
Magic
Compiler Errors
Constructors
Constructor Types
Default Constructor
Copy
Composition Inheritance
Declaration Rules
Not declared vs Deleted
Copy Behavior
Rule of Zero
All
Constructor
Taught by
cpponsea