rcScopedDelete

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

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h

Include

#include "Recast/RecastAlloc.h"

Syntax

template<class T>
class rcScopedDelete

Remarks

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

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

Constructors

Name Description

Public function

rcScopedDelete()

Constructs an instance with a null pointer.

Public function

rcScopedDelete

(
    int n
)

Public function

rcScopedDelete

(
    T* p
)

Constructs an instance with the specified pointer.

Destructors

Name Description

Public function

~rcScopedDelete()

Functions

Name Description

Public function

bool

 

resizeGrow

(
    int n
)

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

Operators

Name Description

Public function

 

operator T *()

The root array pointer.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss