Luna::Unconstructed

Represents one object that supports manual construction and destruction.

template <typename _Ty>
class Luna::Unconstructed

Unconstructed provides a way to allocate the memory for a C++ object without their constructor/destructor being called by system. You have the ability to call their constructor/destructor manually. Such feature is useful when you need to declare some static constructed objects and want to control their construction/ destruction orders. Note that the Unconstructed class does not actually know if the object is constructed, you need to manage it manually and always call the destructor of the object when you want to destroy it.

Member functions