Function CSPPtr<T>::operator =()
Description:
Assigns pointer to the smart pointer object.
 |
Prototype:
T* operator =(T* p);
Arguments:
- T* p [IN]
The pointer assigned to the smart pointer.
Return value:
Returns the contained pointer.
Remarks:
When a pointer is assigned, the object pointed by any previously contained pointer is deleted.
Examples:
CSPPtr<MyClass> sp; sp = new MyClass;
See also:
constructor CSPPtr( T* )
|
|