Add GetIndexesTuple function

This commit is contained in:
sha512sum 2024-07-16 07:57:17 +00:00
parent 359bed1b7d
commit 8f09dc5526

View file

@ -733,4 +733,10 @@ constexpr auto Switch(KeysTuple&& keysTuple, ValuesTuple&& valuesTuple, Key&& ke
}); });
}; };
template <std::size_t N, typename R = Tuple<>>
consteval auto GetIndexesTuple() {
return [](auto... is) {
return MakeTuple<R>(*is...);
} | kSeq<N>;
};
} // namespace utempl } // namespace utempl