摘要: #include <iostream> #include <atomic> template <typename T> class shared_ptr { private: T* ptr; std::atomic<int>* ref_count; public: // 构造函数 explicit 阅读全文
posted @ 2025-01-15 11:14 陈浩辉 阅读(26) 评论(0) 推荐(0)
ヾ(≧O≦)〃嗷~