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
UniquePtr & operator= (const UniquePtr< T > &other)=delete
UniquePtr & operator= (std::nullptr_t)
 UniquePtr (UniquePtr &&other) noexcept
UniquePtr & operator= (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>
UniquePtr & operator= (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:
  • /github/workspace/sources/code/Common/Memory/SmartPointers/UniquePtr.hpp