ivutils
|
Smart pointer. More...
#include <refobj.h>
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.