Function make_unique

Synopsis

#include <toml/utility.hpp>

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

Description

No description yet.

Source

Lines 30-34 in toml/utility.hpp.

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





Add Discussion as Guest

Log in