|
SPH
|
Wrapper of pointer that deletes the resource from destructor. More...
#include <AutoPtr.h>
Public Member Functions | |
| INLINE | AutoPtr () |
| INLINE | AutoPtr (std::nullptr_t) |
| INLINE | AutoPtr (T *ptr) |
| INLINE | AutoPtr (const AutoPtr &other)=delete |
| template<typename T2 > | |
| INLINE | AutoPtr (AutoPtr< T2 > &&other) |
| ~AutoPtr () | |
| INLINE AutoPtr & | operator= (const AutoPtr &other)=delete |
| template<typename T2 > | |
| INLINE AutoPtr & | operator= (AutoPtr< T2 > &&other) |
| INLINE AutoPtr & | operator= (std::nullptr_t) |
| INLINE T & | operator* () const |
| INLINE T * | operator-> () const |
| INLINE RawPtr< T > | get () const |
| INLINE | operator bool () const |
| INLINE bool | operator! () const |
| template<typename... TArgs> | |
| decltype(auto) INLINE | operator() (TArgs &&... args) const |
| INLINE void | reset () |
| INLINE T * | release () |
| INLINE void | swap (AutoPtr &other) |
Friends | |
| template<typename > | |
| class | AutoPtr |
Wrapper of pointer that deletes the resource from destructor.