Add GetTuple from TypeList function
This commit is contained in:
parent
8f09dc5526
commit
570d087f05
1 changed files with 6 additions and 0 deletions
|
@ -739,4 +739,10 @@ consteval auto GetIndexesTuple() {
|
||||||
return MakeTuple<R>(*is...);
|
return MakeTuple<R>(*is...);
|
||||||
} | kSeq<N>;
|
} | kSeq<N>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename R = Tuple<>, typename... Ts>
|
||||||
|
consteval auto GetTuple(TypeList<Ts...>, TypeList<R> = {}) {
|
||||||
|
return MakeTuple<R>(kType<Ts>...);
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace utempl
|
} // namespace utempl
|
||||||
|
|
Loading…
Reference in a new issue