Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::UniquePtr< T > Class Template Reference

Public Member Functions

 UniquePtr (T *ptr, std::function< void(void *)> newDeleteFn)
 
 UniquePtr (std::nullptr_t)
 
 UniquePtr (const UniquePtr< T > &other)=delete
 
UniquePtroperator= (const UniquePtr< T > &other)=delete
 
UniquePtroperator= (std::nullptr_t)
 
 UniquePtr (UniquePtr &&other) noexcept
 
UniquePtroperator= (UniquePtr &&other) noexcept
 
template<typename U, std::enable_if_t< std::is_convertible_v< U *, T * >, int > = 0>
 UniquePtr (UniquePtr< U > &&other) noexcept
 
template<typename U, std::enable_if_t< std::is_convertible_v< U *, T * >, int > = 0>
UniquePtroperator= (UniquePtr< U > &&other) noexcept
 
T * Release () noexcept
 
void Reset () noexcept
 
void Swap (UniquePtr &other) noexcept
 
bool operator== (const Grindstone::UniquePtr< T > &other) const noexcept
 
bool operator== (const T *other) const noexcept
 
bool operator== (std::nullptr_t) const noexcept
 
 operator T* () const
 
 operator bool () const
 
T * operator-> ()
 
const T * operator-> () const
 
T & operator* ()
 
const T & operator* () const
 
T * Get ()
 
const T * Get () const
 
const std::function< void(void *)> & GetDeleter () const
 
template<typename U>
bool operator== (const UniquePtr< U > &other) const noexcept
 

The documentation for this class was generated from the following file: