dune-common
2.2.1
|
Find the first occurance of a type in a tuple. More...
#include <dune/common/tupleutility.hh>
Public Types | |
typedef T | value_type |
type of value More... | |
typedef integral_constant< T, v > | type |
type of this class itself More... | |
Public Member Functions | |
operator value_type () | |
conversion to value_type/T More... | |
Static Public Attributes | |
static const T | value = v |
value this type was generated for More... | |
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.
|
inherited |
type of this class itself
|
inherited |
type of value
|
inlineinherited |
conversion to value_type/T
References Dune::integral_constant< T, v >::value.
|
staticinherited |
value this type was generated for
Referenced by Dune::integral_constant< T, v >::operator value_type().