SPH
Static Public Member Functions | List of all members
VariantIterator< T0, TArgs > Struct Template Reference

Iterates through types of variant until idx-th type is found, and executes given TVisitor, passing arguments to its method visit. More...

#include <Variant.h>

Static Public Member Functions

template<typename TVisitor , typename... Ts>
static void visit (Size idx, TVisitor &&visitor, Ts &&... args)
 

Detailed Description

template<typename T0, typename... TArgs>
struct VariantIterator< T0, TArgs >

Iterates through types of variant until idx-th type is found, and executes given TVisitor, passing arguments to its method visit.

Definition at line 144 of file Variant.h.

Member Function Documentation

◆ visit()

template<typename T0 , typename... TArgs>
template<typename TVisitor , typename... Ts>
static void VariantIterator< T0, TArgs >::visit ( Size  idx,
TVisitor &&  visitor,
Ts &&...  args 
)
inlinestatic

Definition at line 146 of file Variant.h.


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