29#ifndef ETL_NTH_TYPE_INCLUDED
30#define ETL_NTH_TYPE_INCLUDED
33#include "static_assert.h"
38 namespace private_nth_type
41 template <
size_t Index,
typename T1,
typename... TRest>
42 struct nth_type_helper
44 using type =
typename nth_type_helper<Index - 1U, TRest...>::type;
47 template <
typename T1,
typename... TRest>
48 struct nth_type_helper<0U, T1, TRest...>
55 template <
size_t Index,
typename... TTypes>
58 ETL_STATIC_ASSERT(Index <
sizeof...(TTypes),
"etl::nth_type index 'Index' out of bounds");
60 using type =
typename private_nth_type::nth_type_helper<Index, TTypes...>::type;
64 template <
size_t Index,
typename... TTypes>
65 using nth_type_t =
typename nth_type<Index, TTypes...>::type;
bitset_ext
Definition absolute.h:39