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

Class apply_to_tuple - generic apply functor to tuple element (for runtime-indexed access) More...

#include <MHO_Meta.hh>

Static Public Member Functions

template<typename XTupleType , typename XFunctorType >
static void apply (XTupleType &tup, size_t index, XFunctorType &functor)
 Applies a functor to an element of a tuple at a specified index. More...
 

Detailed Description

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

Class apply_to_tuple - generic apply functor to tuple element (for runtime-indexed access)

Member Function Documentation

◆ apply()

template<size_t NTypes>
template<typename XTupleType , typename XFunctorType >
static void hops::apply_to_tuple< NTypes >::apply ( XTupleType &  tup,
size_t  index,
XFunctorType &  functor 
)
inlinestatic

Applies a functor to an element of a tuple at a specified index.

Template Parameters
XTupleTypeTemplate parameter XTupleType
XFunctorTypeTemplate parameter XFunctorType
Parameters
tupTuple of type XTupleType&
indexIndex of type size_t
functorFunctor of type XFunctorType&
Note
This is a static function.

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