摘要: shared_ptr template <typename T> class Sptr { public: //默认构造函数 Sptr() :ptr(nullptr), counter(new int(0)) {} //构造函数 Sptr(T* pIn) :ptr(pIn), counter(new 阅读全文
posted @ 2021-01-16 01:04 肥斯大只仔 阅读(334) 评论(0) 推荐(0) 编辑