CAutoPtr::operator =
The assignment operator.
template< >
CAutoPtr< T > & operator =(
CAutoPtr< T > & p
);
template< typename TSrc >
CAutoPtr< T > & operator =(
CAutoPtr< TSrc > & p
);
p
A pointer.TSrc
A class type.
Returns a reference to a CAutoPtr< T >.
The assignment operator detaches the CAutoPtr object from any current pointer and attaches the new pointer, p, in its place.
See the example in the CAutoPtr Overview.
Header: atlbase.h