CAutoPtr::CAutoPtr
The constructor.
CAutoPtr( ) throw( );
explicit CAutoPtr(
T* p
) throw( );
template< typename TSrc > CAutoPtr(
CAutoPtr< TSrc >& p
) throw( );
template< > CAutoPtr(
CAutoPtr< T >& p
) throw( );
p
An existing pointer.TSrc
The type being managed by another CAutoPtr, used to initialize the current object.
The CAutoPtr object can be created using an existing pointer, in which case it transfers ownership of the pointer.
See the example in the CAutoPtr Overview.
Header: atlbase.h