CAutoVectorPtr::Detach

Call this method to release ownership of a pointer.

T* Detach( ) throw( );

Return Value

Returns a copy of the pointer.

Remarks

Releases ownership of a pointer, sets the CAutoVectorPtr::m_p member variable to NULL, and returns a copy of the pointer. After calling Detach, it is up to the programmer to free any allocated resources over which the CAutoVectorPtr object may have previously assumed responsibility.

Requirements

Header: atlbase.h

See Also

Concepts

CAutoVectorPtr Class

CAutoVectorPtr Members

CAutoVectorPtr::Attach