rcScopedStructArrayDelete

A simple helper class used to delete an array of instances of structs, that require cleaning up by calling destructor on every instance before release.

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 rcScopedStructArrayDelete

Remarks

A simple helper class used to delete an array of instances of structs, that require cleaning up by calling destructor on every instance before release. Releasing is taking place when rcScopedStructArrayDelete instance goes out of scope. @note if T doesn't require a destructor to be called use rcScopedDelete instead.

Constructors

Name Description

Public function

rcScopedStructArrayDelete

(
    const int n
)

Constructs an array of instances of T.

Destructors

Name Description

Public function

~rcScopedStructArrayDelete()

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