// 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
最新推荐文章于 2024-05-27 19:30:00 发布
关键词由CSDN通过智能技术生成