dune-common
2.4.1-rc2
|
Find the first occurance of a type in a tuple. More...
#include <dune/common/tupleutility.hh>
Find the first occurance of a type in a tuple.
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.