diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 04441f5..83dd9c7 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -573,4 +573,12 @@ inline constexpr auto operator<<(Tuple&& tuple, T&& t) { }); }; +template , typename T> +inline constexpr auto Generate(T&& value) { + return [&](std::index_sequence){ + return MakeTuple((std::ignore = Is, value)...); + }(std::make_index_sequence()); +}; + + } // namespace utempl