// for c++ 11 as make_unique is only specified in c++ 14
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
make_unique for c++11
最新推荐文章于 2025-03-29 00:00:00 发布
关键词由优快云通过智能技术生成