Build: enhance docker use, reducing build options, cleanup
[marnav.git] / src / marnav / utils / unique.hpp
blob74bbfaa4bb663cbd3670fabbae420acb42c948b2
1 #ifndef MARNAV__UTILS__UNIQUE__HPP
2 #define MARNAV__UTILS__UNIQUE__HPP
4 #include <memory>
6 namespace marnav
8 namespace utils
10 /// This is part of the C++14 standard, but unfortnunately not C++11.
11 template <class T, class... Args> std::unique_ptr<T> make_unique(Args &&... args)
13 return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
18 #endif