Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSparseArray
Description
Constructs a new item at the lowest free index of the array. This requires a search which can be accelerated with LowestFreeIndexSearchStart.
| Name | EmplaceAtLowestFreeIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/SparseArray.h |
| Include Path | #include "Containers/SparseArray.h" |
template<typename... ArgsType>
int32 EmplaceAtLowestFreeIndex
(
int32 & LowestFreeIndexSearchStart,
ArgsType &&... Args
)
Index to the new item
Parameters
| Name | Remarks |
|---|---|
| LowestFreeIndexSearchStart | Where to start the search for a free index. |
| Args | The arguments to forward to the constructor of the new item. |