TArray::AddUninitialized

Adds a given number of uninitialized elements into the array.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

SizeType AddUninitialized
(
    SizeType Count
)

Remarks

Adds a given number of uninitialized elements into the array.

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

Returns

Number of elements in array before addition.

Parameters

Parameter

Description

Count

Number of elements to add.

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