Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
makeunique.hpp
1 #ifndef MAKEUNIQUE_HPP
2 #define MAKEUNIQUE_HPP
3 
4 #include <memory>
5 
6 template <typename T, typename...Args>
7 inline std::unique_ptr<T> make_unique(Args&&...args) {
8  return std::unique_ptr<T>{new T(std::forward<Args>(args)...)};
9 }
10 
11 #endif // MAKEUNIQUE_HPP