Support Class Library
A set of tools providing classes and utility
include
scl
tools
make
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
}
ptr.h
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
scl::tools::make::shared
std::shared_ptr< T > shared(Args &&... args)
Creates a shared_ptr in-place with the given set of arguments.
Definition:
shared.h:17
scl::tools::make
Group of factory functions.
Definition:
any.h:8
Generated by
1.8.13