Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of C++ object lifetimes in this comprehensive conference talk from C++Now 2024. Delve into the creation and destruction of objects, temporary lifetime extension, memory manipulation using std::malloc and mmap(), union interactions with constructors and strict aliasing, explicit destructor calls, and the roles of std::launder, std::bit_cast, and std::start_lifetime_as. Gain insights from the C++ standard, recent proposals, and compiler optimizations to understand the complexities of object manipulation and avoid undefined behavior. Learn from Jonathan Müller, a library developer at think-cell and C++ standardization committee member, as he provides in-depth answers to crucial questions about C++ object lifetimes.