TArray::TArray

Copy constructor with changed allocator. Use the common routine to perform the copy.

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

template<typename OtherElementType, typename OtherAllocator, std::enable_if_t< UE4Array_Private::TArrayElementsAreCompatible< ElementType, const OtherElementType & >::Value > *>
TArray
(
    const TArray< OtherElementType, OtherAllocator > & Other
)

Remarks

Copy constructor with changed allocator. Use the common routine to perform the copy.

Parameters

Parameter

Description

Other

The source array to copy.