TArray::AddUninitialized

Adds a given number of uninitialized elements into the array.

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

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.