TArray::Add_GetRef

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

ElementType & Add_GetRef
(
    ElementType && Item
)

Remarks

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

Move semantics version.

Returns

A reference to the newly-inserted element.

Parameters

Parameter

Description

Item

The item to add

See Also