UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
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)
 
 ~dtScopedDelete ()
 
 operator T* ()
 
T * get ()
 

Detailed Description

template<class T>
class 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() [1/3]

template<class T >
dtScopedDelete< T >::dtScopedDelete ( )
inline

Constructs an instance with a null pointer.

◆ dtScopedDelete() [2/3]

template<class T >
dtScopedDelete< T >::dtScopedDelete ( int  n)
inline

◆ dtScopedDelete() [3/3]

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

Constructs an instance with the specified pointer.

Parameters
[in]pAn pointer to an allocated array.

◆ ~dtScopedDelete()

template<class T >
dtScopedDelete< T >::~dtScopedDelete ( )
inline

Member Function Documentation

◆ get()

template<class T >
T * dtScopedDelete< T >::get ( )
inline

◆ operator T*()

template<class T >
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: