#include <pfs.h>
Public Member Functions | |
| SelfDestructPtr (T *ptr=0) | |
| SelfDestructPtr (const SelfDestructPtr &r) | |
| SelfDestructPtr & | operator= (const SelfDestructPtr &r) |
| ~SelfDestructPtr () | |
| bool | operator== (const SelfDestructPtr &x) const |
| bool | operator!= (const SelfDestructPtr &x) const |
| T & | operator * () const |
| T * | operator-> () const |
| T * | get () const |
| T * | release () const |
Note that it is not a full implementation of the smart pointer and memory management is not fool proof. You should never store this object as a global variable or a field of a class. These objects should be used only as local variables.
Definition at line 65 of file pfs.h.
1.5.3