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

YouTube

A Deep Dive Into C++ Object Lifetimes

CppNow via YouTube

Overview

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.

Syllabus

A Deep Dive Into C++ Object Lifetimes - Jonathan Müller - C++Now 2024

Taught by

CppNow

Reviews

Start your review of A Deep Dive Into 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.