diff --git a/tstl/include/unique_ptr.hpp b/tstl/include/unique_ptr.hpp index b452b5b2..9e67e6ce 100644 --- a/tstl/include/unique_ptr.hpp +++ b/tstl/include/unique_ptr.hpp @@ -198,6 +198,11 @@ public: static_assert(sizeof(unique_ptr) == sizeof(long), "unique_ptr must have zero overhead with default deleter"); static_assert(sizeof(unique_ptr) == sizeof(long), "unique_ptr must have zero overhead with default deleter"); +template +std::unique_ptr make_unique(Args&&... args){ + return std::unique_ptr(std::forward(args)...); +} + } //end of namespace std #endif