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