Dune Core Modules (2.5.0)
Dune::ForEachValuePair< Tuple1, Tuple2 > Class Template Reference
Extension of ForEachValue to two std::tuple's. More...
#include <dune/common/tupleutility.hh>
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 >
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.
The documentation for this class was generated from the following file:
- dune/common/tupleutility.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)