8template<
typename _Tp,
typename... _Types>
9constexpr std::size_t index_in_typepack()
11 constexpr std::size_t tpsize =
sizeof...(_Types);
12 constexpr bool found[tpsize] = {std::is_same_v<_Tp, _Types>...};
13 std::size_t n = tpsize;
14 for (std::size_t i = 0; i < tpsize; ++i) {
16 if (n < tpsize) {
return tpsize; }