会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ManateeFan
I would love to change the world, but they did not give me the source code.
博客园
首页
新随笔
联系
订阅
管理
2019年10月19日
动态内存与智能指针
摘要: 动态内存与智能指针 智能指针分为shared_ptr、unique_ptr、weak_ptr,他们负责自动释放所指向的对象,shared_ptr允许多个指针指向同一个对象,unique_ptr独占所指向的对象,weak_ptr是一种弱引用,指向shared_ptr所管理的对象,他们都定义在memor
阅读全文
posted @ 2019-10-19 18:16 ManateeFan
阅读(203)
评论(0)
推荐(0)
公告