shared_ptr使用場景、陷阱、性能分析,使用建議

1.std::shared_ptr使用場景 #include <iostream> #include <memory> using namespace std; shared_ptr<int> create0(int value) { return make_shared<int>(value); // 返回一個shared_ptr } //void myfunc(int valu
相關文章
相關標籤/搜索