shared counted pointer, (not thread-safe);
- we use this pointer in case, when we need share one pointer between multiple owners; pointer is released, when last owner (counted_ptr ) is released;
- second template paramer (template<T,ptr::SafeProperty>) means safety: when safe_property is true, we throw NullPointerException on NULL access.
* Usage: * counted_ptr<My> my(new My()); *
* x = new counted_ptr<T,safety>(pt); *
shared counted pointer, (not thread-safe);
- we use this pointer in case, when we need share one pointer between multiple owners; pointer is released, when last owner (counted_ptr ) is released;
- second template paramer (template<T,ptr::SafeProperty>) means safety: when safe_property is true, we throw NullPointerException on NULL access. otherwise - this is unsafe counted pointer wrapper.
* Usage: * counted_ptr<My> my(new My()); *
* x = new counted_ptr<T,safety>(pt); *
Alphabetic index HTML hierarchy of classes or Java