O'Reilly logo
  • Sii Sp. z o.o. PL5252352907 Al.Niepodleglosci 69, Warszawa thinks this is interesting:

template<typename T, typename... Args>
unique_ptr<T> make_unique(Args&&... args)
{
    return std::unique_ptr<T>{new T{std::forward<Args>(args)...}};
}

From

Cover of A Tour of C++

Note

make_unique