Support Class Library
A set of tools providing classes and utility
unique.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <scl/tools/make/ptr.h>
5 
6 namespace scl{
7  namespace tools{
8  namespace make{
16  template <class T, class... Args>
17  std::unique_ptr<T> unique(Args&&... args){
18  return std::unique_ptr<T>{
19  make::ptr<T>(std::forward<Args>(args)...)
20  };
21  }
22  }
23  }
24 }
Global namespace of the SCL.
Definition: alias.hpp:3
Group of factory functions.
Definition: any.h:8
std::unique_ptr< T > unique(Args &&... args)
Creates a unique_ptr in-place with the given set of arguments.
Definition: unique.h:17