HOPS
HOPS class reference
Static Public Member Functions | List of all members
hops::indexed_tuple_visit< NTypes > Struct Template Reference

Class indexed_tuple_visit - generic apply functor (which takes and index value!) to all elements of a tuple. More...

#include <MHO_Meta.hh>

Static Public Member Functions

template<typename XTupleType , typename XFunctorType >
static void visit (XTupleType &tup, XFunctorType &functor)
 Applies a functor to all elements of an XTupleType tuple and recursively visits the next type. More...
 

Detailed Description

template<size_t NTypes>
struct hops::indexed_tuple_visit< NTypes >

Class indexed_tuple_visit - generic apply functor (which takes and index value!) to all elements of a tuple.

Member Function Documentation

◆ visit()

template<size_t NTypes>
template<typename XTupleType , typename XFunctorType >
static void hops::indexed_tuple_visit< NTypes >::visit ( XTupleType &  tup,
XFunctorType &  functor 
)
inlinestatic

Applies a functor to all elements of an XTupleType tuple and recursively visits the next type.

Parameters
paramInput tuple of type XTupleType&
param2Functor of type XFunctorType&

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