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);//堆內存
相關文章
相關標籤/搜索