Support Class Library
A set of tools providing classes and utility
shared.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::shared_ptr<T> shared(Args&&... args){
18  return std::shared_ptr<T>{
19  make::ptr<T>(std::forward<Args>(args)...)
20  };
21  }
22  }
23  }
24 }
Global namespace of the SCL.
Definition: alias.hpp:3
std::shared_ptr< T > shared(Args &&... args)
Creates a shared_ptr in-place with the given set of arguments.
Definition: shared.h:17
Group of factory functions.
Definition: any.h:8