Function CSPPool<T>::ObjectPtr::ObjectPtr() Description: Creates a smart pointer that is assigned a pointer to an object from a CSPPool<T> thread safe pool.
| Prototype: ObjectPtr(); Arguments: No arguments (void). Return value: No value is returned. Remarks: When the smart pointer is destructed, the pooled object is automatically returned back to the pool. You can also return the object back to the pool by calling Release(). Examples: CSPPool<CSPString> Pool; .... CSPPool<CSPString>::ObjectPtr spString( Pool ); See also: constructor ObjectPtr(), member functions Attach(), CSPPool::Get(), Release()
CSPPool<T>::ObjectPtr | Template classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd