dune-common
2.2.0
|
Extension of ForEachValue to two tuples... More...
#include <dune/common/tupleutility.hh>
Public Member Functions | |
ForEachValuePair (TupleType1 &t1, TupleType2 &t2) | |
template<class Functor > | |
void | apply (Functor &f) |
Extension of ForEachValue to two tuples...
This class provides the framework to process two tuples at once. It works the same as ForEachValue, just that the corresponding function object takes one argument from the first tuple and one argument from the second.
Dune::ForEachValuePair< TupleType1, TupleType2 >::ForEachValuePair | ( | TupleType1 & | t1, |
TupleType2 & | t2 | ||
) | [inline] |
Constructor
t1 | First tuple. |
t2 | Second tuple. |
void Dune::ForEachValuePair< TupleType1, TupleType2 >::apply | ( | Functor & | f | ) | [inline] |
Applies the function object f to the pair of tuples.
f | The function object to apply on the pair of tuples. |