Share via


CHeapPtrBase::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 CHeapPtrBase::m_pData member variable to NULL, and returns a copy of the pointer.

Requirements

Header: atlcoll.h

See Also

Reference

CHeapPtrBase Class

CHeapPtrBase::Attach

Other Resources

CHeapPtrBase Members