delete this
来源:互联网 发布:java中冒号的作用 编辑:程序博客网 时间:2024/05/23 21:01
以前一直不敢使用 delete this,因为自觉好像那样有问题,就像人不能揪着自己的头发离开地球一样。 直到今天看了同事的写法,同时网上查了差,才明白实际上只要在调用 delete this 后不再使用 this, 是没问题的。
参考:
delete this——引发的思考
对象析构谈—— delete this 的使用及注意事项
C++对象在堆栈区的析构
- delete this
- delete this
- delete this?
- delete this
- delete this
- delete this
- delete this
- delete this
- delete this
- delete this的使用
- 有关delete this
- 对象自杀 delete this
- delete this的使用
- delete this的用法
- delete this的用法
- delete this的使用
- delete this的使用
- delete this 的用处
- 关于ubuntu 的tftp配置
- flex SDK3.6 下载出现问题
- 用Shell脚本来遍历文件夹里的所有文件
- vc++ 宏展开的方法
- 导出操作
- delete this
- 『转载』Qt 样式表设置
- [技术分享] ISA/TMG 是否支持基于 AD LDS 的用户验证
- C#编程之经典算法——查找(三)
- KeepAlive vs. heart-beat比较
- oracle 存储过程的基本语法 及注意事项
- Fckeditor 编辑器上传flash,音乐等等。
- Effective STL 阅读有感(1)--typename 依赖类型 end()的使用
- java如何获得当前文件路径