~/talk

Special Member Functions in C++

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
slides:none on file

Explains exactly when the compiler emits or suppresses constructors, destructor, copy and move ops: declaring any constructor disables the default ctor, declaring copy or move ops affects the others (moves fall back to copies when absent), and requesting default or delete still counts as user-declared; the move/copy pair must be implemented together. Covers about eight constructor forms, demonstrates CPPInsights and Compiler Explorer to inspect generated code, recommends using sanitizers and static analyzers and compile-time tests, and advocates the rule of zero and rule of five and RAII patterns like RAII for resource safety.

AI-written summary · about

  1. 0:00Introduction
  2. 0:44Agenda
  3. 2:54About me
  4. 4:48Fundamentals
  5. 7:13Magic
  6. 8:40Compiler Errors
  7. 13:57Constructors
  8. 14:38Constructor Types
  9. 15:11Default Constructor
  10. 17:23Copy
  11. 18:09Composition Inheritance
  12. 21:13Declaration Rules
  13. 26:45Not declared vs Deleted
  14. 33:14Copy Behavior
  15. 36:03Rule of Zero
  16. 40:01All
  17. 43:12Constructor
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.