c++智能指针--全部的类型的解析

参考文献:html C++智能指针简单剖析ios C++弱引用智能指针weak_ptr的用处c++ 关于shared_ptr与weak_ptr的使用web 1. 智能指针背后的设计思想 1.1 无智能指针形成内存泄漏的例子 void remodel(std::string & str) { std::string * ps = new std::string(str);//堆内存
相关文章
相关标签/搜索