vtdata library
Public Member Functions | List of all members
scoped_ptr< T > Class Template Reference

Public Member Functions

 scoped_ptr (T *p=0)
T & operator* () const
T * operator-> () const
void set (T *p=0)
T * get () const
 operator T * () const

Detailed Description

template<class T>
class scoped_ptr< T >

Mimics a built-in pointer, except that it guarantees deletion of the object pointed to. A semi-compatible subset of boost's scoped_ptr.