入参要判空
入参要判空
全部文章
分类
C++/Java原理(2)
基础算法(3)
手写数据结构(2)
归档
标签
去牛客网
登录
/
注册
Hello World
怎么去拥抱一夏天的风
全部文章
(共2篇)
手写cpp智能指针shared_ptr
如有错误,欢迎指正,谢谢 template<class T> class smart_ptr{ public: smart_ptr(T* ptr=0):m_ptr(ptr){ if(m_ptr) m_count=new unsigned ...
智能指针
smart_pointer
shared_ptr
手写数构
2020-03-22
0
1089
STL四种智能指针
目录 1.unique_ptr 2.auto_ptr 3.shared_ptr 3.1shared_ptr简介 3.2通过辅助类模拟实现shared_ptr 4.weak_ptr 4.1weak_ptr简介 4.2用法 4.3weak_ptr的作用 5.如何选择智能指针 ...
智能指针
2019-04-10
0
1106