智能指针之make_unique与make_shared

make_unique的实现 std::make_shared是C++11的一部分,可是std::make_unique很惋惜不是。它是在C++14里加入标准库的,但咱们能够本身实现make_unique方法。html // 支持普通指针 template<class T,class... Args> inline typename enable_if<!is_array<T>::value,un
相关文章
相关标签/搜索