27 #ifndef SCHNEK_GENERIC_TYPELIST_HPP_ 28 #define SCHNEK_GENERIC_TYPELIST_HPP_ 34 template<
typename... Types>
39 template<
long n,
typename T,
typename... Types>
41 typedef typename TypeListGet<n-1, Types...>::type type;
42 static constexpr
long value =
TypeListGet<n-1, Types...>::value + 1;
45 template<
typename T,
typename... Types>
48 static constexpr
long value = 1;
59 template<
typename... Types>
64 static constexpr
int size =
sizeof...(Types);
75 static_assert(n < size,
"Index out of bounds");
83 #endif // SCHNEK_GENERIC_TYPELIST_HPP_ Definition: typelist.hpp:35
Definition: typelist.hpp:73
Definition: typelist.hpp:40