#include <countedPtr.h>
Public Member Functions | |
CountedPtr (X *p=0, bool allowDelete=true) | |
Allocates a new counter. |
This is a non-intrusive implementation that allocates an additional int and pointer for every counted object. Not thread-safe.
iopc::CountedPtr< X >::CountedPtr | ( | X * | p = 0 , |
|
bool | allowDelete = true | |||
) | [inline, explicit] |
Allocates a new counter.
p | Referenced object | |
allowDelete | If the reference count drops to zero, this parameter determines if p can be automatically deallocated or not. |