10 constexpr static inline std::size_t
size =
sizeof...(Ts);
15 template <
template <
typename... X>
typename F>
using to =
type_list<F<Ts...>>;
19 template <
typename F>
constexpr static decltype(
auto)
apply(F&& fn) {
20 return fn.template operator()<Ts...>();
25 template <
typename F>
constexpr static inline void foreach(F&& fn) {
26 (fn.template operator()<Ts>(), ...);
32 template <
typename L>
concept list_of_types = is_template_v<type_list, L>;