| 标题 |
阅读 |
评论 |
转发 |
发布日期 |
|
Item 28: Avoid returning "handles" to object internals. |
417 |
0 |
0 |
2013-01-10 |
|
|
Item 27: Minimize casting. |
276 |
0 |
0 |
2013-01-10 |
|
|
Item 25: Consider support for a non-throwing swap |
455 |
0 |
0 |
2013-01-08 |
|
|
Item 24: Declare non-member functions when type conversions should apply to all parameters |
428 |
0 |
0 |
2013-01-08 |
|
|
Item 23: Prefer non-member non-friend functions to member functions |
374 |
0 |
0 |
2013-01-07 |
|
|
Item 22: Declare data members private |
275 |
0 |
0 |
2013-01-07 |
|
|
Item 21: Don't try to return a reference when you must return an object |
380 |
0 |
0 |
2013-01-07 |
|
|
Item 20: Prefer pass-by-reference-to-const to pass-by-value |
278 |
0 |
0 |
2013-01-07 |
|
|
Item 19: Treat class design as type design |
321 |
0 |
0 |
2013-01-07 |
|
|
Item 18: Make interfaces easy to use correctly and hard to use incorrectly |
302 |
0 |
0 |
2013-01-07 |
|
|
Item 17: Store newed objects in smart pointers in standalone statements. |
327 |
0 |
0 |
2012-12-24 |
|
|
Item 16: Use the same form in corresponding uses of new and delete. |
357 |
0 |
0 |
2012-12-24 |
|
|
Item 15: Provide access to raw resources in resource-managing classes. |
314 |
0 |
0 |
2012-12-24 |
|
|
Item 14: Think carefully about copying behavior in resource-managing classes. |
797 |
0 |
0 |
2012-12-24 |
|
|
Item 13: Use objects to manage resources. |
226 |
0 |
0 |
2012-12-24 |
|
|
Item 12: Copy all parts of an object |
257 |
0 |
0 |
2012-12-22 |
|
|
Item 11: Handle assignment to self in operator= |
279 |
0 |
0 |
2012-12-22 |
|
|
Item 10: Have assignment operators return a reference to *this |
207 |
0 |
0 |
2012-12-22 |
|
|
Item 9: Never call virtual functions during construction or destruction |
224 |
0 |
0 |
2012-12-21 |
|
|
Item 8: Prevent exceptions from leaving destructors |
211 |
0 |
0 |
2012-12-21 |
|