~/talk

An (In-) Complete Guide to C++ Object Lifetimes

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [rust]
links:none on file
slides:none on file

Deep dive into when lifetimes actually start and end: exact rules for temporaries and temporary lifetime extension, placement new plus explicit destruction and std::destroy_at, when malloc/mmap/operator new create no objects and how implicit object creation or manual std::start_lifetime_as fixes that, provenance and strict‑aliasing impacts on optimizations, when std::launder or std::bit_cast are required, union common initial sequence, and which patterns compilers accept or optimize away.

AI-written summary · about

  1. 0:00Welcome
  2. 6:30Object fundamentals
  3. 11:48Storage duration basics
  4. 18:50Temporary objects
  5. 29:20Placement new
  6. 36:58Implicit object creation
  7. 44:05Provenance rules
  8. 51:54Type punning
  9. 54:02Dangling references
  10. 59:19Q&A
~/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.