TArray::Add

Adds a new item to the end of the array, possibly reallocating the whole array to fit.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

SizeType Add
(
    ElementType && Item
)

Remarks

Adds a new item to the end of the array, possibly reallocating the whole array to fit.

Move semantics version.

Returns

Index to the new item

Parameters

Parameter

Description

Item

The item to add

See Also

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