- 博客(16)
- 收藏
- 关注
原创 Effective C++读书笔记之十三:以对象管理资源
Item 13:Use objects to manage resources假设我们使用一个用来塑膜投资行为的程序库,其中各式各样的投资类型继承自一个root class:class Investment { ... }; //“投资类型”继承体系中的root class进一步假设,这个程序系通过一个工厂函数(工厂函数会“返回一个base class指针,指向新生成
2014-08-04 14:09:56
743
原创 Effective C++读书笔记之十一:在operator=中处理“自我赋值”
Item 11:Handle assigment to self in operator =
2014-08-03 23:43:31
637
原创 Effective C++读书笔记之十:令operator=返回一个reference to *this
Item 10:Have assigment operators
2014-08-03 15:56:46
638
原创 Effective C++读书笔记之七:为多态基类声明virtual析构函数
Item 07: Declare destructors virtual in polymorphic base classes
2014-08-01 23:46:07
699
原创 Effective C++读书笔记之六:若不想使用编译器自动生成的函数,就该明确拒绝
Item 06:Explicitly disallow the use
2014-08-01 23:44:25
660
原创 Effective C++读书笔记之五:了解C++默默编写并调用哪些函数
Item 05:Know what functions C++ silently writes and calls
2014-08-01 22:26:26
726
原创 Effective C++读书笔记之二:尽量以const,enum,inline替换#define
Item2:Prefer consts,enums,and inlines to #defines
2014-07-31 15:57:36
633
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人