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

Meeting Cpp via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore a comprehensive conference talk from Meeting C++ 2024 that delves deep into the intricacies of C++ object lifetimes. Learn when objects are created and destroyed, understand temporary lifetime extension and recent changes, and examine complex scenarios involving memory manipulation through std::malloc and mmap(). Master the interactions between unions, constructors, and strict aliasing, while gaining insights into the common initial sequence concept. Discover the implications of explicit destructor calls and storage reuse, and clarify the roles of std::launder, std::bit_cast, and std::start_lifetime_as. Through examination of the C++ standard, proposals both old and new, and compiler optimization techniques, gain a thorough understanding of proper object lifetime management to avoid undefined behavior in C++ programs.

Syllabus

An (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024

Taught by

Meeting Cpp

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.