TWrapper

Work around used to separate pack expansion of EncodedIndices and VariantIndices in VisitImpl below when defining the Invokers array.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/TVariantMeta.h

Include

#include "Misc/TVariantMeta.h"

Syntax

template<typename InvokeFn, SIZE_T... VariantIndices>
struct TWrapper

Remarks

Work around used to separate pack expansion of EncodedIndices and VariantIndices in VisitImpl below when defining the Invokers array.

Ideally the line below would only need to be written as: constexpr InvokeFn Invokers[] = { &VisitApplyEncoded<EncodedIndices, VariantIndices...>... };

Due to what appears to be a lexing bug, MSVC 2017 tries to expand EncodedIndices and VariantIndices together

Constants

Name

Description

FuncPtr

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