会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朱小勇
博客园
园子
首页
新随笔
联系
管理
订阅
2019年3月5日
C++智能指针
摘要: 一、头文件 #include <memory> 二、独占智能指针unique_ptr 1、生成 //生成 1、创建空的 std::unique_ptr<int> ptr1; 2、通过指针创建 std::unique_ptr<Task> taskPtr(new iTask(22)); 3、通过make
阅读全文
posted @ 2019-03-05 11:16 朱小勇
阅读(276)
评论(0)
推荐(0)
公告