MyTuple

Makes a [TTuple](API\Runtime\Core\Templates\TTuple) from some arguments.

Windows
MacOS
Linux

Syntax

auto MyTuple

Remarks

Makes a TTuple from some arguments. The type of the TTuple elements are the decayed versions of the arguments.

Example:

void Func(const int32 A, FString&& B) { Equivalent to: TTuple MyTuple(A, TEXT("Hello"), MoveTemp(B)); /**MoveTemp will cast a reference to an rvalue reference. This is UE's equivalent of std::move except that it will not compile when passed an rvalue or const object, because we would prefer to be informed when MoveTemp will have no effect.

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