C++中的智能指针

Posted lipandl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++中的智能指针相关的知识,希望对你有一定的参考价值。

四种智能指针的讲解(auto_ptr, second_ptr, shared_ptr, weak_ptr),包含源代码:https://blog.csdn.net/sinat_36118270/article/details/69061348

shared_ptr, unique_ptr, weak_ptr使用方法讲解:https://blog.csdn.net/vict_wang/article/details/88781941#shared_ptr_105

理解第二个博客中的parent与child的示例,第一个博客中的双向链表的示例(循环引用)

以上是关于C++中的智能指针的主要内容,如果未能解决你的问题,请参考以下文章

C++智能指针

C++智能指针

C++中的智能指针

C++异常机制和智能指针机制的杂谈

C++异常机制和智能指针机制的杂谈

智能指针类模板