pointer.hpp¶
Ludus Wiki · API overview · Browse API
File
Unique single-object ownership with an explicit destruction protocol.
UniquePtr<T, D> owns one T* together with its deleter D; both form the ownership state and always move, swap and destroy as a pair. The ownership contract, conversion rules and delivery plan are specified in docs/architecture/smart-pointers.md.This header is opt-in: it is never included by
core.h, a foundational header or the precompiled header. Declared in modules/foundation/base/include/ludus/foundation/base/pointer.hpp