Atoms Crowd  4.1.0
AtomsUtils::dtScopedDelete< T > Class Template Reference

#include <DetourAlloc.h>

Public Member Functions

 dtScopedDelete ()
 Constructs an instance with a null pointer.
 
 dtScopedDelete (int n)
 
 dtScopedDelete (T *p)
 
 operator T* ()
 
T * get ()
 

Detailed Description

template<class T>
class AtomsUtils::dtScopedDelete< T >

A simple helper class used to delete an array when it goes out of scope.

Note
This class is rarely if ever used by the end user.

Constructor & Destructor Documentation

◆ dtScopedDelete()

template<class T >
AtomsUtils::dtScopedDelete< T >::dtScopedDelete ( T *  p)
inline

Constructs an instance with the specified pointer.

Parameters
[in]pAn pointer to an allocated array.

Member Function Documentation

◆ operator T*()

template<class T >
AtomsUtils::dtScopedDelete< T >::operator T* ( )
inline

The root array pointer.

Returns
The root array pointer.

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