3#ifndef DUNE_COMMON_TYPELIST_HH
4#define DUNE_COMMON_TYPELIST_HH
124 struct TypeListSize {};
135 struct TypeListSize<
TypeList<T...>> : std::integral_constant<std::size_t, sizeof...(T)> {};
139 template<std::
size_t i,
class T>
140 struct TypeListElement {};
147 template<std::size_t i,
class... T>
155 using type =
typename std::tuple_element<i, std::tuple<T...>>::type;
168 template<std::
size_t i,
class T>
std::tuple< MetaType< T >... > TypeList
A simple type list.
Definition: typelist.hh:85
Dune namespace.
Definition: alignedallocator.hh:10
typename TypeListElement< i, T >::type TypeListEntry_t
Shortcut for TypeListElement<i, T>::type;.
Definition: typelist.hh:169
Check if given type is an empty TypeList.
Definition: typelist.hh:119
Check if given type is a TypeList.
Definition: typelist.hh:98
typename std::tuple_element< i, std::tuple< T... > >::type type
Export type of i-th element in TypeList.
Definition: typelist.hh:155
type Type
Export type of i-th element in TypeList.
Definition: typelist.hh:162