tongqingliu

保持学习的态度

2020年3月17日 #

C++11中的四种智能指针

摘要: 前言 C++ STL 提供了四种智能指针:auto_ptr、unique_ptr、shared_ptr 和 weak_ptr。其中auto_ptr 是 C++98 提供的解决方案,C+11 已将其摒弃,并提出了 unique_ptr 作为 auto_ptr 替代方案。虽然 auto_ptr 已被摒弃 阅读全文

posted @ 2020-03-17 20:09 tongqingliu 阅读(3035) 评论(0) 推荐(1) 编辑

导航