[PATCH] libstdc++: Implement C++23 P2590R2 - Explicit lifetime management

Ville Voutilainen ville.voutilainen@gmail.com
Fri Aug 29 07:53:49 GMT 2025


On Fri, 29 Aug 2025 at 10:40, Richard Biener <rguenther@suse.de> wrote:
> So, is std::start_lifetime_as<T> a thing on readonly objects?

Yes. It has a const void* overload. From a language-conceptual
perspective, there's nothing odd about creating
a const buffer from bit soup and then starting the lifetime of an
object of another type in that buffer.

>From a language perspective it's not a store. It just tells the
language that an object of type T resides in that storage.


More information about the Libstdc++ mailing list