会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
横有多长,竖有多高
轻仓尝试,坚决止损;顺势加仓,不接飞刀
博客园
首页
新随笔
联系
订阅
管理
2020年12月3日
c++自己实现智能指针:auto_ptr、shared_ptr、unique_ptr
摘要: auto_ptr 1 template<typename T> 2 class my_auto_ptr 3 { 4 public: 5 //构造 6 my_auto_ptr(T* ptr) : m_ptr(ptr) {} 7 my_auto_ptr(my_auto_ptr<T>& other) {
阅读全文
posted @ 2020-12-03 10:44 股市的小黄花
阅读(214)
评论(0)
推荐(0)
公告