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

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

#include <UT_ScopedPtr.h>

+ Inheritance diagram for UT_ScopedPtr< T >:

Public Member Functions

 UT_ScopedPtr (T *p=0)
 

Detailed Description

template<class T>
class UT_ScopedPtr< T >

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.

Constructor & Destructor Documentation

template<class T >
UT_ScopedPtr< T >::UT_ScopedPtr ( T p = 0)
inline

Definition at line 33 of file UT_ScopedPtr.h.


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