2021年3月31日

自定义C++智能指针

摘要: #include<iostream> using namespace std; //自定义智能指针 template <class T> class SmartPointer { public: SmartPointer(T* ptr) { ref = ptr; ref_count = new un 阅读全文

posted @ 2021-03-31 13:28 回形针的迷宫 阅读(147) 评论(0) 推荐(0) 编辑

导航