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

YouTube

A Complete Guide to C++ Object Lifetimes and Memory Management

NDC Conferences via YouTube

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

Reviews

Start your review of A Complete Guide to C++ Object Lifetimes and Memory Management

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.