#include <countingptr.hh>
T | The type of the pointed-to object. Must be derived from Countable. | |
P | What to do when the reference count reaches 0. Two predefined policy classes are available: NondeletingMemoryManagementPolicy and DeletingMemoryManagementPolicy (the default). |
cp may be set via assingment from an apropriate C pointer or another CP of the same type. To access the pointed to object, the expressions *cp and cp->member may be used, where member is a member of the pointed to object. Finally, CP objects may be compared using == and != to find out whether they point to the same object.