Template Function util::make_shared¶
Defined in File shared.hpp
Function Documentation¶
-
template<class T, class ...Args>
auto util::make_shared(Args&&... args) -> shared<T>¶ Constructs an object of type T and wraps it in a std::shared_ptr using args as the parameter list for the constructor of T.
- Template Parameters
T – the type of object to construct
Args – the types of arguments for the constructor of T
- Parameters
args – a list of arguments with which an instance of T will be constructed
- Returns
an util::shared object of an instance of type T