Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Description
Copies data from one array into this array. Uses the fast path if the data in question does not need a constructor.
| Name | CopyToEmptyWithSlack |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename OtherElementType, typename OtherSizeType>
void CopyToEmptyWithSlack
(
const OtherElementType * OtherData,
OtherSizeType OtherNum,
SizeType PrevMax,
SizeType ExtraSlack
)
Parameters
| Name | Remarks |
|---|---|
| Source | The source array to copy |
| PrevMax | The previous allocated size |
| ExtraSlack | Additional amount of memory to allocate at the end of the buffer. Counted in elements. |