TSparseArray::EmplaceAtLowestFreeIndex

Constructs a new item at the lowest free index of the array.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/SparseArray.h"

Syntax

template<typename... ArgsType>
int32 EmplaceAtLowestFreeIndex
(
    int32 & LowestFreeIndexSearchStart,
    ArgsType &&... Args
)

Remarks

Constructs a new item at the lowest free index of the array. This requires a search which can be accelerated with LowestFreeIndexSearchStart.

Returns

Index to the new item

Parameters

Parameter

Description

LowestFreeIndexSearchStart

Where to start the search for a free index.

Args

The arguments to forward to the constructor of the new item.

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