Add Transform to type lists
This commit is contained in:
parent
f92ef27cf3
commit
5b1bd8e9a6
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue