ivutils
Loading...
Searching...
No Matches
shptr< T, delete_t > Class Template Reference

Smart pointer. More...

#include <refobj.h>

Detailed Description

template<class T, class delete_t = delete_ptr<T>>
class shptr< T, delete_t >

Smart pointer.

Used to control memory allocated for dynamic objects. Contains pointer p on dynamic object and pointer on integer number num, which specify the number of other smart pointers with refers at the same dynamic object p. If *num becomes zero (no one refers to dynamic object), dynamic object should be deleted.


The documentation for this class was generated from the following file: