![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 182 阅读 · 0 评论 -
Effective C++ 11. Handle assignment to self in operator=
Handle assignment to self in operator=原创 2017-10-26 09:16:21 · 420 阅读 · 0 评论 -
Effective C++ 12. Copy all parts of an object
copy all parts of an object原创 2017-10-26 09:52:58 · 211 阅读 · 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 · 205 阅读 · 0 评论 -
Effective C++ 44. Factor parameter-independent code out of templates
factor parameter-independent code out of templates原创 2017-11-13 10:22:54 · 232 阅读 · 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 · 139 阅读 · 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 · 158 阅读 · 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 · 491 阅读 · 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 · 192 阅读 · 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 · 185 阅读 · 0 评论 -
Effective C++ 19. type conversions
type conversion原创 2017-10-26 17:12:36 · 150 阅读 · 0 评论 -
Effective C++ 8. Prevent exceptions from leaving destructors
Prevent exception from leaving destructors原创 2017-10-26 08:45:08 · 193 阅读 · 0 评论 -
Effective C++ 49. Understand the behavior of the new-handler
understand the behavior of the new-handler原创 2017-11-11 21:49:01 · 125 阅读 · 0 评论 -
7. Declare destructors virtual in polymorphic base classes.
declare destructors virtual in polymorphic base classes.原创 2017-10-25 10:40:49 · 217 阅读 · 0 评论 -
Effective C++ 27. Minimize casting
avoid dynamic_cast原创 2017-10-27 16:01:36 · 159 阅读 · 0 评论 -
Effecitive C++ 28. Avoid returning "handle" to object internals
avoid returning "handle" to object inernals原创 2017-10-27 19:26:29 · 169 阅读 · 0 评论 -
Effective C++ 25. Consider support for a non-throwing swap
consider support for a non-throwing swap原创 2017-10-28 10:36:16 · 198 阅读 · 0 评论 -
Effective C++ 2. Prefer consts, enums, and inlines to #defines
consts & enums & inlines原创 2017-10-20 16:24:31 · 192 阅读 · 0 评论 -
Effective C++ 3. Use const whenever posible
use const whenever posible原创 2017-10-20 19:04:27 · 229 阅读 · 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 · 190 阅读 · 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 · 213 阅读 · 0 评论 -
*Effective C++ 31. Minimize complilation dependencies between files(handle class & interface class)
handle class & interface class原创 2017-10-31 09:57:00 · 246 阅读 · 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 · 158 阅读 · 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 · 332 阅读 · 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 · 148 阅读 · 0 评论