From 5b1bd8e9a6733e82f553b3725aef925ce147e216 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 28 Feb 2024 20:09:21 +0000 Subject: [PATCH] Add Transform to type lists --- include/utempl/type_list.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/utempl/type_list.hpp b/include/utempl/type_list.hpp index c66adc4..232ec36 100644 --- a/include/utempl/type_list.hpp +++ b/include/utempl/type_list.hpp @@ -48,6 +48,9 @@ consteval auto Reverse(TypeList list) { }(std::make_index_sequence()); }; - +template +consteval auto Transform(TypeList, auto&& f) -> TypeList{}))...> { + return {}; +}; } // namespace utempl