Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore a comprehensive conference talk from NDC TechTown that delves deep into the intricacies of C++ object lifetimes. Learn when objects are created and destroyed, understand temporary lifetime extension and its recent changes, and master concepts like std::malloc memory manipulation. Discover the complexities of using mmap() for shared memory, examine union interactions with constructors and strict aliasing, and understand the implications of explicit destructor calls with storage reuse. Gain expert insights into advanced concepts such as std::launder, std::bit_cast, and std::start_lifetime_as through detailed explanations backed by C++ standard references, proposals, and compiler optimization examples. Master the fundamentals of proper object manipulation while avoiding undefined behavior in your C++ programs.
Syllabus
An (In-)Complete Guide to C++ Object Lifetimes - Jonathan Müller - NDC TechTown 2024
Taught by
NDC Conferences