
Effective-c++-笔记
ruihuank
这个作者很懒,什么都没留下…
展开
-
Effective C++ 23. Prefer non-member non-friend functions to member functions
prefer non-memer non-friend functions to member functions原创 2017-10-27 10:00:19 · 207 阅读 · 0 评论 -
Effective C++ 11. Handle assignment to self in operator=
Handle assignment to self in operator=原创 2017-10-26 09:16:21 · 465 阅读 · 0 评论 -
Effective C++ 12. Copy all parts of an object
copy all parts of an object原创 2017-10-26 09:52:58 · 251 阅读 · 0 评论 -
Effective C++ 14. Think carefully about copying behavior in resource-managing classes
Think carefully about copying behavior in resource-managing classes原创 2017-10-26 11:06:20 · 225 阅读 · 0 评论 -
Effective C++ 44. Factor parameter-independent code out of templates
factor parameter-independent code out of templates原创 2017-11-13 10:22:54 · 255 阅读 · 0 评论 -
Effective C++ 45. Use member function templates to accept "all compatible types."
use member function templates to accept "all compatible types."原创 2017-11-13 11:18:40 · 158 阅读 · 0 评论 -
Effective C++ 17. Store newed objects in smart pointers in standalone statements
store newed objects in smart pointers in standalone statements.原创 2017-10-26 15:26:08 · 184 阅读 · 0 评论 -
Effective C++ 37. Never redefine a function's inherited default parameter value
never redefine a function's inheried default parameter value原创 2017-11-03 10:42:48 · 519 阅读 · 0 评论 -
Effective C++ 38. Model "has-a or is-implemented-in-terms-of" through composition
Model "has-a or is-implemented-in-terms-of" through composition原创 2017-11-03 11:27:31 · 218 阅读 · 0 评论 -
Effective C++ 18. Make interfaces easy to use correctly and hard to use incorrectly
Make interfaces easy to use correctly and hard to use incorrectly原创 2017-10-26 16:41:19 · 221 阅读 · 0 评论 -
Effective C++ 19. type conversions
type conversion原创 2017-10-26 17:12:36 · 175 阅读 · 0 评论 -
Effective C++ 8. Prevent exceptions from leaving destructors
Prevent exception from leaving destructors原创 2017-10-26 08:45:08 · 217 阅读 · 0 评论 -
Effective C++ 49. Understand the behavior of the new-handler
understand the behavior of the new-handler原创 2017-11-11 21:49:01 · 147 阅读 · 0 评论 -
7. Declare destructors virtual in polymorphic base classes.
declare destructors virtual in polymorphic base classes.原创 2017-10-25 10:40:49 · 241 阅读 · 0 评论 -
Effective C++ 27. Minimize casting
avoid dynamic_cast原创 2017-10-27 16:01:36 · 191 阅读 · 0 评论 -
Effecitive C++ 28. Avoid returning "handle" to object internals
avoid returning "handle" to object inernals原创 2017-10-27 19:26:29 · 189 阅读 · 0 评论 -
Effective C++ 25. Consider support for a non-throwing swap
consider support for a non-throwing swap原创 2017-10-28 10:36:16 · 222 阅读 · 0 评论 -
Effective C++ 2. Prefer consts, enums, and inlines to #defines
consts & enums & inlines原创 2017-10-20 16:24:31 · 216 阅读 · 0 评论 -
Effective C++ 3. Use const whenever posible
use const whenever posible原创 2017-10-20 19:04:27 · 258 阅读 · 0 评论 -
Effective C++ 20. Prefer pass-by-reference-to-const to pass-by-value
Prefer pass-by-reference-to-const to pass-by-value原创 2017-10-22 20:28:03 · 221 阅读 · 0 评论 -
Effective C++ 24. Declare non-member functions when type convesions should apply to all parameters
Declare non-member functions when type convesions should apply to all parameters原创 2017-10-22 21:29:33 · 242 阅读 · 0 评论 -
*Effective C++ 31. Minimize complilation dependencies between files(handle class & interface class)
handle class & interface class原创 2017-10-31 09:57:00 · 268 阅读 · 0 评论 -
Effective C++ 46. Define non-member functions inside templates when type conversions are desired
Define non-member functions inside templates when type conversions are desired原创 2017-11-09 11:29:08 · 182 阅读 · 0 评论 -
6. Explicitly disallow the use of compiler generated functions you do not want
explicity disallow the use of compiler generated functions you do not want原创 2017-10-25 10:27:53 · 365 阅读 · 0 评论 -
Effective C++ 52. Write placement delete if you write placement new
write placement delete if you write placement new原创 2017-11-14 09:33:45 · 175 阅读 · 0 评论