#include <rutz/scopedptr.h>


Public Member Functions | |
| scoped_ptr (T *p=0) throw () | |
| Construct with pointer to given object (or null). | |
| template<class TT> | |
| scoped_ptr (TT *p) throw () | |
| Construct with pointer to given object of related type. | |
| ~scoped_ptr () | |
| Destructor. | |
| void | reset (T *p=0) |
| Reset with pointer to different object (or null). | |
| T & | operator* () const throw () |
| Dereference. | |
| T * | operator-> () const throw () |
| Dereference for member access. | |
| T * | get () const throw () |
| Get a pointer to the referred-to object. | |
scoped_ptr mimics a built-in pointer except that it guarantees deletion of the object pointed to, either on destruction of the scoped_ptr or via an explicit reset().
Definition at line 52 of file scopedptr.h.