The smart pointers provided by C++11 is straight forward enough. So just providing the interface here for reference.
1) shared_ptr

2) weak_ptr
Low level interfaces
3) unique_ptr
本文介绍了C++11标准中提供的几种智能指针类型:shared_ptr, weak_ptr 和 unique_ptr。这些智能指针提供了不同的所有权和生命周期管理机制,帮助开发者更有效地管理内存资源。
The smart pointers provided by C++11 is straight forward enough. So just providing the interface here for reference.
1) shared_ptr

2) weak_ptr
Low level interfaces
3) unique_ptr

被折叠的 条评论
为什么被折叠?