会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
2022年3月8日
std::weak_ptr 与 std::shared_ptr 配合使用
摘要: std::shared_ptr<int> a = std::make_shared<int>(2); std::weak_ptr<int> b = a; a = nullptr; if (std::shared_ptr<int> b_lock = b.lock()) std::cout << *b_
阅读全文
posted @ 2022-03-08 11:43 strive-sun
阅读(533)
评论(0)
推荐(1)
公告