diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 91bdd03..07c0976 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -555,4 +555,11 @@ consteval auto Take() { }; }; +template +inline constexpr auto operator<<(Tuple&& tuple, T&& t) { + return Unpack(std::forward(tuple), [&](Ts&&... args){ + return MakeTuple(std::forward(args)..., std::forward(t)); + }); +}; + } // namespace utempl