Luna::UniquePtr

A smart pointer that wraps one dynamically created object, and deletes the object when the pointer is destructed.

template <typename _Ty, typename _Deleter>
class Luna::UniquePtr

Parameters

  • _Ty

    The type of the object to wrap.

  • _Deleter

    The object deletion function to use.

Member functions