29#ifndef ETL_INDEX_OF_TYPE_INCLUDED
30#define ETL_INDEX_OF_TYPE_INCLUDED
34#include "static_assert.h"
43 static ETL_CONSTANT
size_t index_of_type_npos = etl::integral_limits<size_t>::max;
48 template <
typename T,
typename... TTypes>
54 template <
typename T,
typename T1,
typename... TRest>
55 struct index_of_type<T, T1, TRest...>
56 :
public etl::integral_constant< size_t, etl::is_same<T, T1>::value ? 0
57 : (etl::index_of_type<T, TRest...>::value == etl::index_of_type_npos
58 ? etl::index_of_type_npos
59 : etl::index_of_type<T, TRest...>::value + 1)>
68 struct index_of_type<T> :
public etl::integral_constant<size_t, etl::index_of_type_npos>
76 template <
typename T,
typename... TTypes>
77 inline constexpr size_t index_of_type_v = etl::index_of_type<T, TTypes...>::value;
bitset_ext
Definition absolute.h:40