auto_ptr
来源:互联网 发布:中国出境旅游消费数据 编辑:程序博客网 时间:2024/05/21 11:31
1.常用操作
auto_ptr<int> ap(new int);
(1)int *p = ap.get();//获取操作
(2)ap.reset(new int(1));//删除了第一个new int,重置为第二个
(3)int *q = ap.release();//释放所有权
- auto_ptr:
- Auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- Auto_Ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- auto_ptr
- 深入linux内核架构读书笔记-进程管理和调度
- Linux串口—struct termios结构体
- 读JDK中Thread类源码有感
- 572 - Oil Deposits
- cmd命令操作windows
- auto_ptr
- Qt 遗珠(之一)
- 嵌入式操作系统内核原理和开发(延时操作)
- 浮躁的IT,浮躁的CSDN
- Windows服务的调试
- C++设计模式
- fedora 屏幕录像工具
- 节后大礼包!XSql 源码开放,插件源码开放,Sofire v1.6 源码开放(已上传)
- 传 LG 月底发布第四代谷歌 Nexus 智能机