GPL_Pointer

GPL_Pointer

gpl

1998 12-05


CLASS

GPL_Pointer - C++ reference-counted pointer


SYNOPSIS

GPL_Pointer is a reference-counted pointer to a class. An instance of GPL_Pointer can be used in place of a native pointer, providing automatic deallocation of memory when the last reference disappears. The use of GPL_Pointer data members in classes in most cases obviates the need for copy constructors and assignment operators.


PARENTS


GPL_Reference public


CONSTRUCTORS


DESTRUCTOR


OPERATORS


NOTES

GPL_Pointer may not work for primitive data types (e.g., int, float) depending on the compiler's policy on instantiation of templates.


As class instances, GPL_Pointer object can not be used in unions.


For efficiency purposes, GPL_Pointer instances should be passed by reference.


SEE ALSO

GPL_Reference(3)