29#ifndef ETL_INDEX_OF_TYPE_INCLUDED
30#define ETL_INDEX_OF_TYPE_INCLUDED
33#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...> :
public etl::integral_constant<size_t, etl::is_same<T, T1>::value ? 0 :
56 (etl::index_of_type<T, TRest...>::value == etl::index_of_type_npos ? etl::index_of_type_npos :
57 etl::index_of_type<T, TRest...>::value + 1)>
66 struct index_of_type<T> :
public etl::integral_constant<size_t, etl::index_of_type_npos>
74 template <
typename T,
typename... TTypes>
75 inline constexpr size_t index_of_type_v = etl::index_of_type<T, TTypes...>::value;
bitset_ext
Definition absolute.h:39