Add GetIndexesTuple function
This commit is contained in:
parent
359bed1b7d
commit
8f09dc5526
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue