Dune Core Modules (2.4.1)
Dune::FirstTypeIndex< Tuple, T, start > Struct Template Reference
Find the first occurance of a type in a tuple. More...
#include <dune/common/tupleutility.hh>
Detailed Description
template<class Tuple, class T, std::size_t start = 0>
struct Dune::FirstTypeIndex< Tuple, T, start >
struct Dune::FirstTypeIndex< Tuple, T, start >
Find the first occurance of a type in a tuple.
- Template Parameters
-
Tuple The tuple type to search in. T Type to search for. start First index to try. This can be adjusted to skip leading tuple elements.
This class can search for a particular type in tuple. It will check each type in the tuple in turn, and set its member constant value
to the index of the first occurance of type was found. If the type was not found, a static_assert is triggered.
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
(Dec 22, 23:30, 2024)