Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name |
Remarks |
Include Path |
Unreal Specifiers |
|
Constructor, initializes element number counters. |
Containers/Array.h |
|
|
Explicit consteval constructor for allocators that require zero-initialization of members for constant initialization |
Containers/Array.h |
|
|
|
Containers/Array.h |
|
TArray
(
std::initializer_list< InElementType > InitList
)
|
Initializer list constructor |
Containers/Array.h |
|
TArray
(
const TArray< OtherElementType, OtherAllocator >& Other
)
|
Copy constructor with changed allocator. Use the common routine to perform the copy. |
Containers/Array.h |
|
|
Copy constructor. Use the common routine to perform the copy. |
Containers/Array.h |
|
|
Move constructor. |
Containers/Array.h |
|
TArray
(
TArray< OtherElementType, OtherAllocator >&& Other
)
|
Move constructor. |
Containers/Array.h |
|
|
|
Containers/Array.h |
|
TArray
(
const ElementType* Ptr,
SizeType Count
)
|
Constructor from a raw array of elements. |
Containers/Array.h |
|
|
Copy constructor. Use the common routine to perform the copy. |
Containers/Array.h |
|
TArray
(
TArray< OtherElementType, AllocatorType >&& Other,
SizeType ExtraSlack
)
|
Move constructor. |
Containers/Array.h |
|
TArray()
Description
Constructor, initializes element number counters.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
constexpr TArray()
TArray(EConstEval)
Description
Explicit consteval constructor for allocators that require zero-initialization of members for constant initialization
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
consteval TArray
(
EConstEval
)
TArray(const TArrayView< OtherElementType, OtherSizeType > &)
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
| Source |
/Engine/Source/Runtime/Core/Public/Containers/ArrayView.h |
template<typename OtherElementType, typename OtherSizeType>
TArray
(
const TArrayView < OtherElementType, OtherSizeType > & Other
)
TArray(std::initializer_list< InElementType >)
Description
Initializer list constructor
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
std::initializer_list< InElementType > InitList
)
TArray(const TArray< OtherElementType, OtherAllocator > &)
Description
Copy constructor with changed allocator. Use the common routine to perform the copy.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
template<typename OtherElementType, typename OtherAllocator, std::enable_if_t<(UE::Core::Private::TArrayElementsAreCompatible_V< ElementType, const OtherElementType & >), int >>
TArray
(
const TArray < OtherElementType, OtherAllocator > & Other
)
Parameters
| Name |
Remarks |
| Other |
The source array to copy. |
TArray(const TArray &)
Description
Copy constructor. Use the common routine to perform the copy.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
const TArray & Other
)
Parameters
| Name |
Remarks |
| Other |
The source array to copy. |
TArray(TArray &&)
Description
Move constructor.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
TArray && Other
)
Parameters
| Name |
Remarks |
| Other |
Array to move from. |
TArray(TArray< OtherElementType, OtherAllocator > &&)
Description
Move constructor.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
template<typename OtherElementType, typename OtherAllocator, std::enable_if_t<(UE::Core::Private::TArrayElementsAreCompatible_V< ElementType, OtherElementType && >), int >>
TArray
(
TArray < OtherElementType, OtherAllocator > && Other
)
Parameters
| Name |
Remarks |
| Other |
Array to move from. |
TArray(FIntrusiveUnsetOptionalState)
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
FIntrusiveUnsetOptionalState Tag
)
TArray(const ElementType *, SizeType)
Description
Constructor from a raw array of elements.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
const ElementType * Ptr,
SizeType Count
)
Parameters
| Name |
Remarks |
| Ptr |
A pointer to an array of elements to copy. |
| Count |
The number of elements to copy from Ptr. |
See Also
TArray(const TArray &, SizeType)
Description
Copy constructor. Use the common routine to perform the copy.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
TArray
(
const TArray & Other,
SizeType ExtraSlack
)
Parameters
| Name |
Remarks |
| Other |
The source array to copy. |
| ExtraSlack |
Tells how much extra memory should be preallocated at the end of the array in the number of elements. |
TArray(TArray< OtherElementType, AllocatorType > &&, SizeType)
Description
Move constructor.
| |
|
| Name |
TArray |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path |
#include "Containers/Array.h" |
template<typename OtherElementType, std::enable_if_t<(UE::Core::Private::TArrayElementsAreCompatible_V< ElementType, OtherElementType && >), int >>
TArray
(
TArray < OtherElementType, AllocatorType > && Other,
SizeType ExtraSlack
)
Parameters
| Name |
Remarks |
| Other |
Array to move from. |
| ExtraSlack |
Tells how much extra memory should be preallocated at the end of the array in the number of elements. |