Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Special Member Functions in C++ - Lecture

cpponsea via YouTube

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

Reviews

Start your review of Special Member Functions in C++ - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.