UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
rcScopedDelete< T > Class Template Reference

#include <RecastAlloc.h>

Public Member Functions

 rcScopedDelete ()
 Constructs an instance with a null pointer.
 
 rcScopedDelete (int n)
 
 rcScopedDelete (T *p)
 
 ~rcScopedDelete ()
 
 operator T* ()
 
bool resizeGrow (int n)
 UE: resize and copy existing memory (n = element count), doesn't destruct elements!
 

Detailed Description

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

◆ rcScopedDelete() [1/3]

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

Constructs an instance with a null pointer.

◆ rcScopedDelete() [2/3]

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

◆ rcScopedDelete() [3/3]

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

Constructs an instance with the specified pointer.

Parameters
[in]pAn pointer to an allocated array.

◆ ~rcScopedDelete()

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

Member Function Documentation

◆ operator T*()

template<class T >
rcScopedDelete< T >::operator T* ( )
inline

The root array pointer.

Returns
The root array pointer.

◆ resizeGrow()

template<class T >
bool rcScopedDelete< T >::resizeGrow ( int  n)

UE: resize and copy existing memory (n = element count), doesn't destruct elements!


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