20 template<
typename Head,
typename...
Tails>
28 const auto f = []<
typename... Ts>(
Typelist<Ts...>)
30 return (std::same_as<T, Ts>
or ...);
38 template<
typename TList>
41 template<
typename...
Types>
43 static constexpr size_t value =
sizeof...(Types);
46 template<
typename TList>
51 template<
typename TList,
size_t Index>
54 template<
typename Head,
typename...
Tails>
61 static_assert(
Index <
sizeof...(Tails)+1,
"index out of range");
65 template<
typename TList,
size_t Index>
71 template<
typename...
Types>
75 template<
typename TTypelist>
auto to_variant(Typelist< Types... >) -> std::variant< Types... >
Definition custom_decoration_generator.h:5
constexpr size_t TypelistSizeV
Definition typelist.h:47
typename TypeAt< TList, Index >::type TypeAtT
Definition typelist.h:66
decltype(detail::to_variant(std::declval< TTypelist >())) VariantOfTypelistElements
Definition typelist.h:76
constexpr U to(T &&value)
Definition conversion.h:56
Head type
Definition typelist.h:56
typename TypeAt< Typelist< Tails... >, Index-1 >::type type
Definition typelist.h:62
static constexpr bool contains() noexcept
Definition typelist.h:26
Head head
Definition typelist.h:22