Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Description
Pad the array with the specified value to ensure that it is at least the specified length. Does nothing if Num() >= DesiredNum.
| Name | PadToNum |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType PadToNum
(
SizeType DesiredNum,
const ElementType & PadValue
)
The number of elements that were added to the array, or 0 if Num() >= DesiredNum.
Parameters
| Name | Remarks |
|---|---|
| DesiredNum | The desired number of elements that should exist in the array. |
| PadValue | The value to pad with |