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 …