DUNE PDELab (git)
Dune::ForEachType< TE, T > Struct Template Reference
Helper template to clone the type definition of a std::tuple with the storage types replaced by a user-defined rule. More...
Detailed Description
template<template< class > class TE, class T>
struct Dune::ForEachType< TE, T >
struct Dune::ForEachType< TE, T >
Helper template to clone the type definition of a std::tuple with the storage types replaced by a user-defined rule.
Suppose all storage types A_i in a std::tuple define a type A_i::B. You can build up a pair consisting of the types defined by A_i::B in the following way:
template <class A>
struct MyEvaluator
{
typedef typename A::B Type;
};
typedef ForEachType<MyEvaluator, ATuple>::Type BTuple;
Helper template to clone the type definition of a std::tuple with the storage types replaced by a use...
Definition: tupleutility.hh:116
Here, MyEvaluator is a helper struct that extracts the correct type from the storage types of the tuple defined by the tuple ATuple.
The documentation for this struct 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)