Template Function sick::make_unique

Function Documentation

template<typename T, typename ...Ts>
std::unique_ptr<T> sick::make_unique(Ts&&... params)

Generic helper function to create std::unique_ptr similar to the C++14 standard.

param T Target Object type.
param Ts Argument list type.

Parameters:

params – Arguments forwarded to the object’s constructor.

Returns:

std::unique_ptr<T> Returns a std::unique_ptr instance.