owned_object.hpp¶
Ludus Wiki · API overview · Browse API
File
Fallible creation of uniquely owned objects in an allocation domain.
TryCreateOwned<T> allocates one exact T through an AllocationDomain and writes UniquePtr<T, DomainDeleter<T>>. The deleter frees through the original domain with the original size and alignment. The contract is specified in docs/architecture/smart-pointers.md ("Fallible construction and
domain lifetime", delivery slice 2). Declared in modules/foundation/memory/include/ludus/foundation/memory/owned_object.hpp