Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

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

ACCU Conference via YouTube

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

Reviews

Start your review of An (In-)Complete Guide to C++ Object Lifetimes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.