SPH
|
Simplified implementation of std::unique_ptr, using only default deleter. More...
Go to the source code of this file.
Classes | |
class | AutoPtr< T > |
Wrapper of pointer that deletes the resource from destructor. More... | |
Namespaces | |
std | |
Overload of std::swap for Sph::Array. | |
Functions | |
template<typename T > | |
bool | operator== (const AutoPtr< T > &ptr, std::nullptr_t) |
template<typename T > | |
bool | operator== (std::nullptr_t, const AutoPtr< T > &ptr) |
template<typename T > | |
bool | operator!= (const AutoPtr< T > &ptr, std::nullptr_t) |
template<typename T > | |
bool | operator!= (std::nullptr_t, const AutoPtr< T > &ptr) |
template<typename T , typename... TArgs> | |
INLINE AutoPtr< T > | makeAuto (TArgs &&... args) |
template<typename T1 , typename T2 > | |
INLINE AutoPtr< T1 > | dynamicCast (AutoPtr< T2 > &&source) |
Performs a dynamic_cast on an AutoPtr, moving the ownership of the resource to the created object. More... | |
template<typename T > | |
void | std::swap (Sph::AutoPtr< T > &p1, Sph::AutoPtr< T > &p2) |
Simplified implementation of std::unique_ptr, using only default deleter.
Definition in file AutoPtr.h.
bool operator!= | ( | const AutoPtr< T > & | ptr, |
std::nullptr_t | |||
) |
bool operator!= | ( | std::nullptr_t | , |
const AutoPtr< T > & | ptr | ||
) |
bool operator== | ( | const AutoPtr< T > & | ptr, |
std::nullptr_t | |||
) |