From 8f09dc5526a7ee742d908fa4cde01ad79f9669ee Mon Sep 17 00:00:00 2001 From: sha512sum Date: Tue, 16 Jul 2024 07:57:17 +0000 Subject: [PATCH] Add GetIndexesTuple function --- include/utempl/utils.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 3054790..592dee0 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -733,4 +733,10 @@ constexpr auto Switch(KeysTuple&& keysTuple, ValuesTuple&& valuesTuple, Key&& ke }); }; +template > +consteval auto GetIndexesTuple() { + return [](auto... is) { + return MakeTuple(*is...); + } | kSeq; +}; } // namespace utempl