nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nds_memory.hh
Go to the documentation of this file.
1 #ifndef NDS_DETAIL_MEMORY_HH
2 #define NDS_DETAIL_MEMORY_HH
3 
4 #include <memory>
5 
6 namespace NDS
7 {
8  namespace detail
9  {
22  template < typename T, typename... Ts >
23  std::unique_ptr< T >
24  make_unique( Ts&&... params )
25  {
26  return std::unique_ptr< T >(
27  new T( std::forward< Ts >( params )... ) );
28  }
29  }
30 }
31 
32 #endif // NDS_DETAIL_MEMORY_HH
std::unique_ptr< T > make_unique(Ts &&...params)
Definition: nds_memory.hh:24