美文网首页
Effective c++ 学习笔记(原书好的英文表达)

Effective c++ 学习笔记(原书好的英文表达)

作者: 懒生活 | 来源:发表于2021-10-23 19:18 被阅读0次

Effective c++ 学习笔记(原书好的英文表达)

这次凑个更新

  1. it becomes clear that ad hoc ways of dealing with resource management aren't sufficient.
  2. this approach can all but eliminate resource management problems.
  3. the standard library's auto_ptr is tailormade for this kind of situation.
  4. as a final comment, I have to point out that createInvestment's raw pointer return type is an invitation to a resource leak.
  5. Resource-managing classes are wonderful. They're your bulwark against resource leaks.
  6. never sullying your hands with direct access to raw resources.

相关文章

网友评论

      本文标题:Effective c++ 学习笔记(原书好的英文表达)

      本文链接:https://www.haomeiwen.com/subject/xmcdaltx.html