|
cartobase 6.0.20
|
Holds a temporary object pointer in a scope. More...
#include <>>
Classes | |
| class | InsipidProxyPointer |
Public Types | |
| typedef T | element_type |
Public Member Functions | |
| scoped_ptr (T *p=0) | |
| template<class U> | |
| scoped_ptr (std::unique_ptr< U > &&r) | |
| ~scoped_ptr () | |
| void | reset (T *p=0) |
| T & | operator* () const |
| T * | operator-> () const |
| T * | get () const |
| operator InsipidProxyPointer * () const | |
| void | swap (scoped_ptr &r) |
Holds a temporary object pointer in a scope.
We now use std::unique_ptr. For allocating on the heap something that must be destructed when exiting the current scope. Just like a variable allocated on the stack...
Definition at line 69 of file scopedptr.h.
| typedef T carto::scoped_ptr< T >::element_type |
Definition at line 73 of file scopedptr.h.
|
inlineexplicit |
Definition at line 84 of file scopedptr.h.
Referenced by swap().
|
inline |
Definition at line 92 of file scopedptr.h.
|
inline |
Definition at line 96 of file scopedptr.h.
|
inline |
Definition at line 120 of file scopedptr.h.
|
inline |
Definition at line 126 of file scopedptr.h.
|
inline |
Definition at line 110 of file scopedptr.h.
|
inline |
Definition at line 115 of file scopedptr.h.
|
inline |
Definition at line 101 of file scopedptr.h.
|
inline |