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

Описание к видео An (In-)Complete Guide to C++ Object Lifetimes - Jonathan Müller - ACCU 2024

ACCU Membership: https://tinyurl.com/ydnfkcyn
---

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

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.

Slides: https://accu.org/conf-previous/accu2024/
Sponsored By think-cell
---

Jonathan Müller

Jonathan is a library developer at think-cell. In his spare time, he works on various C++ open source libraries for memory allocation, cache-friendly containers, or parsing. He also blogs at foonathan.net and is a member of the C++ standardization committee.
---

The ACCU Conference is the annual conference of the ACCU membership, but is open to any and all who wish to attend. The tagline for the ACCU is 'Professionalism in Programming', which captures the whole spectrum of programming languages, tools, techniques and processes involved in advancing our craft. While there remains a core of C and C++ - with many members participating in respective ISO standards bodies - the conference, like the organisation, embraces other language ecosystems and you should expect to see sessions on C#, D, F#, Go, Javascript, Haskell, Java, Kotlin, Lisp, Python, Ruby, Rust, Swift and more.The ACCU Conference is a conference by programmers for programmers about programming.
Discounted rates for members.
ACCU Membership: https://tinyurl.com/ydnfkcyn
2024 Program: https://accu.org/conf-previous/accu2024/
https://accu.org
https://www.accuconference.org/
https://mastodon.social/@ACCUConf
  / accu-conference  
https://bsky.app/profile/accuconf.bsk...
  / accuorg  
  / accuconf  
---

YouTube Videos Filmed, Edited & Optimised by Digital Medium: https://events.digital-medium.co.uk


#accuconf #programming #cplusplus #cppprogramming #software

Комментарии

Информация по комментариям в разработке