dune-common 2.9.0
|
Find the first occurrence of a type in a std::tuple. More...
#include <dune/common/tupleutility.hh>
Find the first occurrence of a type in a std::tuple.
Tuple | The std::tuple type to search in. |
T | Type to search for. |
start | First index to try. This can be adjusted to skip leading std::tuple elements. |
This class can search for a particular type in std::tuple. It will check each type in the std::tuple in turn, and set its member constant value
to the index of the first occurrence of type was found. If the type was not found, a static_assert is triggered.