Function CSPPtr<T>::Attach() Description: Detaches the pointer contained by another smart pointer and attaches it to this one.
| Prototype: void Attach(CSPPtr<T>& sp); Arguments: CSPPtr<T>& sp [IN] The smart pointer from which to detach the pointer and attach it to this object. Return value: No return value (void). Remarks: After the pointer is attached to this smart pointer, the other pointer contains a null pointer, and the object pointed to by the previously contained object is deleted. Examples: CSPPtr<char> sp1; CSPPtr<char> sp2; sp1.New(); ... sp2.Attach( sp1 ); See also: member function Detach(), Attach( T* p )
CSPPtr<T> | Template classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd