Interface Documentation
Version: invalid
Namespaces | Functions
tuple_visitor.hh File Reference
#include <tuple>
Include dependency graph for tuple_visitor.hh:

Go to the source code of this file.

Namespaces

 flecsi
 

Functions

template<typename _Tuple , typename _Fn , size_t... _Idx>
void flecsi::util::tuple_visitor_impl (_Tuple &&t, _Fn &&f, std::index_sequence< _Idx... >)
 
template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor (_Tuple &&t, _Fn &&f)
 
template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor (_Fn &&f)
 

Function Documentation

◆ tuple_visitor() [1/2]

template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor ( _Tuple &&  t,
_Fn &&  f 
)

Apply the given callable object to each element of the given tuple.

Template Parameters
_TupleThe tuple type.
_FnCallable object type.
Parameters
fCallable object.
tTuple.
Note
This is written in the style of the standard library so that it can be used in a proposal to add this to the standard.

◆ tuple_visitor() [2/2]

template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor ( _Fn &&  f)

Apply the given callable object to each element of the given tuple type.

Template Parameters
_TupleThe tuple type. This type must be default constructible, which implies that each element type must be default constructible.
_FnCallable object type.
Parameters
fCallable object.
Note
This is written in the style of the standard library so that it can be used in a proposal to add this to the standard.