From 570d087f05cf62613859a61f8c38c3c95724cd0b Mon Sep 17 00:00:00 2001 From: sha512sum Date: Tue, 16 Jul 2024 08:02:19 +0000 Subject: [PATCH] Add GetTuple from TypeList function --- include/utempl/utils.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 592dee0..62b6fb3 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -739,4 +739,10 @@ consteval auto GetIndexesTuple() { return MakeTuple(*is...); } | kSeq; }; + +template , typename... Ts> +consteval auto GetTuple(TypeList, TypeList = {}) { + return MakeTuple(kType...); +}; + } // namespace utempl