Dune::ForEachValuePair< Tuple1, Tuple2 > Class Template Reference
[Tuple Utilities]

Extension of ForEachValue to two std::tuple's. More...

#include <dune/common/tupleutility.hh>

List of all members.

Public Member Functions

 ForEachValuePair (Tuple1 &t1, Tuple2 &t2)
template<class Functor >
void apply (Functor &f)

Detailed Description

template<class Tuple1, class Tuple2>
class Dune::ForEachValuePair< Tuple1, Tuple2 >

Extension of ForEachValue to two std::tuple's.

This class provides the framework to process two std::tuple's at once. It works the same as ForEachValue, just that the corresponding function object takes one argument from the first std::tuple and one argument from the second.

Note:
You have to ensure that the two std::tuple's you provide are compatible in the sense that they have the same length and that the objects passed to the function objects are related in meaningful way. The best way to enforce it is to build the second std::tuple from the existing first std::tuple using ForEachType.

Constructor & Destructor Documentation

template<class Tuple1 , class Tuple2 >
Dune::ForEachValuePair< Tuple1, Tuple2 >::ForEachValuePair ( Tuple1 &  t1,
Tuple2 &  t2 
) [inline]

Constructor

Parameters:
t1 First std::tuple.
t2 Second std::tuple.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 25 Mar 2018 for dune-common by  doxygen 1.6.1