Overview
Dive deep into the intricacies of C++ object lifetimes in this comprehensive conference talk from ACCU 2024. Explore when objects are created and destroyed, the nuances of temporary lifetime extension, and the implications of manipulating memory with std::malloc and mmap(). Examine the interactions between unions, constructors, and strict aliasing, as well as the complexities of explicitly calling destructors and reusing storage. Gain insights into std::launder, std::bit_cast, and std::start_lifetime_as. Learn through an analysis of the C++ standard, recent proposals, and compiler optimizations. Presented by Jonathan Müller, a library developer at think-cell and active contributor to C++ open-source projects and standardization efforts.
Syllabus
An (In-)Complete Guide to C++ Object Lifetimes - Jonathan Müller - ACCU 2024
Taught by
ACCU Conference