An (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024 @MeetingCPP
An (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024  @MeetingCPP
Uploaded January 2025 | Updated November 2026, 2 days ago
An (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024
Slides: slides.meetingcpp.com
Survey: survey.meetingcpp.com

A C++ program manipulate objects, but it is undefined behavior if you attempt to manipulate them while they are not alive.

So let's do a deep dive into object lifetime.

When are objects created and when are they destroyed?

How does temporary lifetime extension come into play and what changed there recently?

What happens when you `std::malloc` memory and just pretend objects are there without creating anything?

Or worse: You use `mmap()` to read shared memory.

How do unions interact with constructors, strict aliasing, or the "common initial sequence"?

What when you explicitly call the destructor and later re-use the same storage?

What's the deal with `std::launder`, `std::bit_cast`, and `std::start_lifetime_as`?

We'll answer all of those questions and much more.

We'll do that by looking at the C++ standard, old and new proposals, and compiler optimizations.
An (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024An Introduction to Swarm Intelligence Algorithms - Frances Buontempo - Meeting C++ 2024Binary Parsing, C++23 Style - Hari Prasad Manoharan - Meeting C++ 2025LLVM Code Generation - Book Review with Author Quentin ColombetThe promise of static reflection in C++26: Type Traits without compiler intrinsics - Andrei ZissuNeural Rendering for Subsurface Scattering - Cyrill MikschC++ in Embedded Systems - Book review with Author Amar MahmutbegovićRemoving negative numbers from containers, a fun topic to talk about!Software and Safety - Anthony Williams - Keynote Meeting C++ 2025Teaching C++ in the age of AI and large language modelsIntroduction to Sender/Receiver framework - Goran Aranđelović - Meeting C++ 2024Interview with Guy Davidson on C++26 and profiles for Meeting C++ 2026
Meeting Cpp |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER