- 博客(1)
- 收藏
- 关注
原创 C++ 智能指针
文章目录std::auto_ptrstd::unique_ptrReturn from a functionPassing to a function工厂模式中的应用unique_ptr与shared_ptr的转换std::shared_ptrstd::weak_ptr环形依赖问题weak_ptr std::auto_ptr C++17 已经被移除了,不需要了解,也不应该使用。 std::unique_ptr unique_ptr具有和raw pointer同样的size, 小巧且快速,同时unique_p
2021-05-21 17:04:20 201 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人