标题 |
阅读 |
评论 |
转发 |
发布日期 |
Item 24: Declare non-member functions when type conversions should apply to all parameters |
392 |
0 |
0 |
2013-01-08 |
|
Item 23: Prefer non-member non-friend functions to member functions |
334 |
0 |
0 |
2013-01-07 |
|
Item 22: Declare data members private |
243 |
0 |
0 |
2013-01-07 |
|
Item 21: Don't try to return a reference when you must return an object |
346 |
0 |
0 |
2013-01-07 |
|
Item 20: Prefer pass-by-reference-to-const to pass-by-value |
253 |
0 |
0 |
2013-01-07 |
|
Item 19: Treat class design as type design |
295 |
0 |
0 |
2013-01-07 |
|
Item 18: Make interfaces easy to use correctly and hard to use incorrectly |
273 |
0 |
0 |
2013-01-07 |
|
section17 tools for large programs_多重继承 |
402 |
0 |
0 |
2012-12-26 |
|
Item 17: Store newed objects in smart pointers in standalone statements. |
290 |
0 |
0 |
2012-12-24 |
|
Item 16: Use the same form in corresponding uses of new and delete. |
314 |
0 |
0 |
2012-12-24 |
|
Item 15: Provide access to raw resources in resource-managing classes. |
284 |
0 |
0 |
2012-12-24 |
|
Item 14: Think carefully about copying behavior in resource-managing classes. |
767 |
0 |
0 |
2012-12-24 |
|
Item 13: Use objects to manage resources. |
194 |
0 |
0 |
2012-12-24 |
|
Item 12: Copy all parts of an object |
199 |
0 |
0 |
2012-12-22 |
|
Item 11: Handle assignment to self in operator= |
246 |
0 |
0 |
2012-12-22 |
|
Item 10: Have assignment operators return a reference to *this |
175 |
0 |
0 |
2012-12-22 |
|
Item 9: Never call virtual functions during construction or destruction |
206 |
0 |
0 |
2012-12-21 |
|
Item 8: Prevent exceptions from leaving destructors |
190 |
0 |
0 |
2012-12-21 |
|
Item 7: Declare destructors virtual in polymorphic base classes |
271 |
0 |
0 |
2012-12-21 |
|
Item 6: Explicitly disallow the use of compiler-generated functions you do not want |
245 |
0 |
0 |
2012-12-21 |
|