Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
The assignment operator.
template< >
CAutoPtr< T > & operator =(
CAutoPtr< T > & p
);
template< typename TSrc >
CAutoPtr< T > & operator =(
CAutoPtr< TSrc > & p
);
Parameters
p
A pointer.TSrc
A class type.
Return Value
Returns a reference to a CAutoPtr< T >.
Remarks
The assignment operator detaches the CAutoPtr object from any current pointer and attaches the new pointer, p, in its place.
Example
See the example in the CAutoPtr Overview.
Requirements
Header: atlbase.h