TTupleIndex

Helper template which gets the tuple index of a given type from a given [TTuple](API\Runtime\Core\Templates\TTuple).

Windows
MacOS
Linux

References

Module

MeshDescription

Header

/Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h

Include

#include "MeshAttributeArray.h"

Syntax

template<typename Type, typename Tuple>
struct TTupleIndex

Remarks

Helper template which gets the tuple index of a given type from a given TTuple. If the type occurs more than once, the first index is returned. If the type doesn't appear, a compile error is generated.

Given Type = char, and Tuple = TTuple<int, float, char>, TTupleIndex<Type, Tuple>::Value will be 2.

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