TArray::operator=

Assignment operator.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

template<typename OtherAllocator>
TArray & operator=
(
    const TArray< ElementType, OtherAllocator > & Other
)

Remarks

Assignment operator. First deletes all currently contained elements and then copies from other array.

Allocator changing version.

Parameters

Parameter

Description

Other

The source array to assign from.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss