HDK
|
A smart pointer for unique ownership of dynamically allocated objects. More...
#include <UT_ScopedPtr.h>
Public Member Functions | |
UT_ScopedPtr (T *p=0) | |
A smart pointer for unique ownership of dynamically allocated objects.
UT_ScopedPtr mimics a built-in pointer except that it guarantees deletion of the object pointed to, either upon destruction or via an explicit reset(). UT_ScopedPtr is a simple solution for simple needs; use UT_SharedPtr/UT_IntrusivePtr if your needs are more complex.
Definition at line 29 of file UT_ScopedPtr.h.
|
inline |
Definition at line 33 of file UT_ScopedPtr.h.