Wrapper for pointer with automatic destruction. More...
#include <Utils.h>
Public Member Functions | |
AutoPointer (void) | |
AutoPointer (T *o) | |
~AutoPointer (void) | |
T & | operator* (void) const |
T * | operator-> (void) const |
operator bool (void) const | |
bool | operator! (void) const |
T * | Ptr (void) const |
T * | Release (void) |
Wrapper for pointer with automatic destruction.
If ordinary pointer is wrapped in instance of this class it will be automatically destroyed when instance is destroyed. This is useful for maintaing pointers in scope of one function. Only pointers returned by new() are supported.