TArray::InsertZeroed_GetRef

Inserts a zeroed element into the array at given location.

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 & InsertZeroed_GetRef
(
    SizeType Index
)

Remarks

Inserts a zeroed element into the array at given location.

Caution, InsertZeroed_GetRef() will create an element without calling the constructor and this is not appropriate for element types that require a constructor to function properly.

Returns

A reference to the newly-inserted element.

Parameters

Parameter

Description

Index

Tells where to insert the new element.

See Also