An auto_ptr that uses array delete on its contents. More...
#include <xmltooling/unicode.h>
Public Member Functions | |
auto_arrayptr (T *ptr) | |
Constructor. | |
~auto_arrayptr () | |
Destructor, uses array delete operation on wrapped pointer. | |
const T * | get () const |
Returns the wrapped pointer. | |
T * | release () |
Returns the wrapped pointer and transfers ownership of it to the caller. |
An auto_ptr that uses array delete on its contents.
T | type of pointer to wrap |
xmltooling::auto_arrayptr< T >::auto_arrayptr | ( | T * | ptr | ) | [inline] |
Constructor.
ptr | pointer to wrap |
const T* xmltooling::auto_arrayptr< T >::get | ( | ) | const [inline] |
Returns the wrapped pointer.
T* xmltooling::auto_arrayptr< T >::release | ( | ) | [inline] |
Returns the wrapped pointer and transfers ownership of it to the caller.