HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UniquePtr< T, Deleter > Class Template Reference

A smart pointer for unique ownership of dynamically allocated objects. More...

#include <UT_UniquePtr.h>

+ Inheritance diagram for UT_UniquePtr< T, Deleter >:

Detailed Description

template<class T, class Deleter = std::default_delete<T>>
class UT_UniquePtr< T, Deleter >

A smart pointer for unique ownership of dynamically allocated objects.

UT_UniquePtr mimics a built-in pointer except that it guarantees deletion of the object pointed to, either upon destruction or via an explicit reset(). UT_UniquePtr is a simple solution for simple needs; use UT_SharedPtr/UT_IntrusivePtr if your needs are more complex.

Examples:
HOM/SOP_HOMWave.C.

Definition at line 47 of file UT_UniquePtr.h.


The documentation for this class was generated from the following file: