HDK
|
A smart pointer for unique ownership of dynamically allocated arrays. More...
#include <UT_ScopedArray.h>
Public Member Functions | |
UT_ScopedArray (T *p=0) | |
A smart pointer for unique ownership of dynamically allocated arrays.
UT_ScopedArray stores a pointer to a dynamically allocated array, without reference counting. The array pointed to is guaranteed to be deleted, either upon destruction, or via an explicit reset. UT_ScopedArray is a simple solution for simple needs; use UT_SharedArray if your needs are more complex.
As this is a wrapper around the hboost::scoped_array template, the type (T) must have a Copy Constructor and a valid Assignment Operator.
Definition at line 31 of file UT_ScopedArray.h.
|
inline |
Definition at line 35 of file UT_ScopedArray.h.