MakeTuple

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

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/Tuple.h

Include

#include "Templates/Tuple.h"

Syntax

template<typename... Types>
TTuple< typename TDecay< Types >::Type... > MakeTuple
(
    Types &&... Args
)

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)); auto MyTuple = MakeTuple(A, TEXT("Hello"), MoveTemp(B)); }

Returns

A tuple containing a copy of the arguments.

Parameters

Parameter

Description

Args

The arguments used to construct the tuple.

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