Add GetTuple from TypeList function

This commit is contained in:
sha512sum 2024-07-16 08:02:19 +00:00
parent 8f09dc5526
commit 570d087f05

View file

@ -739,4 +739,10 @@ consteval auto GetIndexesTuple() {
return MakeTuple<R>(*is...);
} | kSeq<N>;
};
template <typename R = Tuple<>, typename... Ts>
consteval auto GetTuple(TypeList<Ts...>, TypeList<R> = {}) {
return MakeTuple<R>(kType<Ts>...);
};
} // namespace utempl