TSparseArray::Emplace

Constructs a new item at the last freed 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 Emplace
(
    ArgsType &&... Args
)

Remarks

Constructs a new item at the last freed index of the array.

Returns

Index to the new item

Parameters

Parameter

Description

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