Add Transform to type lists

This commit is contained in:
sha512sum 2024-02-28 20:09:21 +00:00
parent f92ef27cf3
commit 5b1bd8e9a6

View file

@ -48,6 +48,9 @@ consteval auto Reverse(TypeList<Ts...> list) {
}(std::make_index_sequence<sizeof...(Ts)>());
};
template <typename... Ts>
consteval auto Transform(TypeList<Ts...>, auto&& f) -> TypeList<decltype(f(TypeList<Ts>{}))...> {
return {};
};
} // namespace utempl