#include <p6scopedptr.h>
Public Types | |
typedef T | element_type |
Public Member Functions | |
T * | get () const |
P6BOOL | operator! () const |
P6BOOL | operator!= (T &p) const |
T & | operator* () const |
T * | operator-> () const |
P6BOOL | operator== (T *p) const |
p6ScopedPtr (T *ptr=0) | |
T * | release () |
void | reset (T *p=0) |
void | swap (p6ScopedPtr &b) |
~p6ScopedPtr () | |
A simple smart pointer that mimics a standard pointer to an allocated object (allocated with new) and guarantees deletion on destruction or when reset() is called.
Definition at line 27 of file p6scopedptr.h.