UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Core::Private::TWrapper< InvokeFn, VariantIndices > Struct Template Reference

#include <TVariantMeta.h>

Static Public Attributes

template<SIZE_T EncodedIndex>
static constexpr InvokeFn FuncPtr = &VisitApplyEncoded<EncodedIndex, VariantIndices...>
 

Detailed Description

template<typename InvokeFn, SIZE_T... VariantIndices>
struct UE::Core::Private::TWrapper< InvokeFn, VariantIndices >

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

Member Data Documentation

◆ FuncPtr

template<typename InvokeFn , SIZE_T... VariantIndices>
template<SIZE_T EncodedIndex>
constexpr InvokeFn UE::Core::Private::TWrapper< InvokeFn, VariantIndices >::FuncPtr = &VisitApplyEncoded<EncodedIndex, VariantIndices...>
staticconstexpr

The documentation for this struct was generated from the following file: