All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Automatically deletes a pointer upon exit of a function. More...
#include <LocalPointer.h>
Public Member Functions | |
LocalPointer (T *p) | |
~LocalPointer () |
Automatically deletes a pointer upon exit of a function.
It avoids many 'delete' at each exit point of a function.
QGpCoreTools::LocalPointer< T >::LocalPointer | ( | T * | p | ) | [inline] |
{_p=p;}
QGpCoreTools::LocalPointer< T >::~LocalPointer | ( | ) | [inline] |
{delete _p;}