智能指针shared_ptr的实现
摘要:
#include using namespace std; template class smart { public: smart() = default; smart(T* ptr = nullptr):_ptr(ptr) { if (_ptr) { _count = new size_t(1); } ... 阅读全文
posted @ 2018-11-14 16:09 隔壁泰山家的泰山 阅读(122) 评论(0) 推荐(0)
浙公网安备 33010602011771号