DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
make_unique.h
Go to the documentation of this file.
1 #ifndef MAKE_UNIQUE_H
2 #define MAKE_UNIQUE_H
3 
4 #include <memory>
5 
6 namespace utils {
7 
8  template<typename T, typename ... Ts>
9  std::unique_ptr<T> make_unique(Ts &&... params)
10  {
11  return std::unique_ptr<T>(new T(std::forward<Ts>(params)...));
12  };
13 
14 }
15 
16 #endif // MAKE_UNIQUE_H
std::unique_ptr< T > make_unique(Ts &&... params)
Definition: make_unique.h:9
Definition: prettyprint.h:19