TSparseArray::Reserve

Preallocates enough memory to contain the specified number of elements.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/SparseArray.h

Include

#include "Containers/SparseArray.h"

Syntax

void Reserve
(
    int32 ExpectedNumElements
)

Remarks

Preallocates enough memory to contain the specified number of elements.

Parameters

Parameter

Description

ExpectedNumElements

the total number of elements that the array will have

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