|class||Ceylan::CountedPointer< T >|
|struct||Ceylan::CountedPointer< T >::CountedPointer::Referent|
|Second: implementation. More...|
|This part of the Ceylan namespace gathers some convenient string manipulation facilities to be widely used. |
|Advanced pointer template, counting its references and deleting the contained resource as soon as no one refers to it. |
|#define||CEYLAN_DISPLAY_REFCOUNT(message) std::cout << "[CountedPointer] " << message << std::endl ;|
|The reference count type. |
|#define CEYLAN_COUNTED_POINTER_USE_COPY_ON_WRITE 0|
Advanced pointer template, counting its references and deleting the contained resource as soon as no one refers to it.
Significantly simpler than shared pointers of Boost (see CeylanSmartPointer in unstable section), these counted pointers do not deal with multithread (therefore, no lightweight mutex needed!) nor with circular references (no weak_ptr counterpart).
Advanced raw pointer, but basic shared pointer. Mimics the STL names.
Thanks to Robert Di Falco.
|#define CEYLAN_DISPLAY_REFCOUNT||(||message||)||std::cout << "[CountedPointer] " << message << std::endl ;|