Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetNumUninitialized
(
SizeType NewNum, |
Resizes array to given number of elements. New elements will be uninitialized. | Containers/Array.h | |
void SetNumUninitialized
(
SizeType NewNum, |
Containers/Array.h |
SetNumUninitialized(SizeType, EAllowShrinking)
Description
Resizes array to given number of elements. New elements will be uninitialized.
| Name | SetNumUninitialized |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void SetNumUninitialized
(
SizeType NewNum,
EAllowShrinking AllowShrinking
)
Parameters
| Name | Remarks |
|---|---|
| NewNum | New size of the array. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
SetNumUninitialized(SizeType, bool)
| Name | SetNumUninitialized |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void SetNumUninitialized
(
SizeType NewNum,
bool bAllowShrinking
)