
Effective C++
文章平均质量分 93
《Effective C++》是一本轻薄短小的高密度的“专家经验积累”。本系列就是对Effective C++进行通读:
写Bug那些事
开始学习!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Effective C++条款条款42:了解typename的双重意义(Understand the two meanings of typename)
期待大家和我交流,留言或者私信,一起学习,一起进步!原创 2023-04-18 22:58:00 · 723 阅读 · 1 评论 -
Effective C++条款41:了解隐式接口和编译器多态(Understand implicit interfaces and compile-time polymorphism)
期待大家和我交流,留言或者私信,一起学习,一起进步!原创 2023-04-18 11:31:25 · 389 阅读 · 0 评论 -
Effective C++条款40:明智而审慎地使用多重继承(Use multiple inheritance judiciously)
Effective C++条款40:明智而审慎地使用多重继承(Use multiple inheritance judiciously)原创 2023-01-16 11:36:56 · 908 阅读 · 1 评论 -
Effective C++条款39:明智而审慎地使用private继承(Use private inheritance judiciously)
Effective C++条款39:明智而审慎地使用private继承(Use private inheritance judiciously)原创 2023-01-15 00:17:10 · 678 阅读 · 0 评论 -
Effective C++条款38:通过复合塑模出 has-a 或“根据某物实现出“
Effective C++条款38:通过复合塑模出 has-a 或"根据某物实现出"(Model "has-a" or "is-implemented-in-terms-of" through composition)原创 2023-01-14 17:49:00 · 969 阅读 · 0 评论 -
Effective C++条款37:绝不重新定义继承而来的缺省参数值(Never redefine a function‘s inherited default parameter value)
Effective C++条款37:绝不重新定义继承而来的缺省参数值(Never redefine a function‘s inherited default parameter value)原创 2023-01-13 23:21:16 · 391 阅读 · 0 评论 -
Effective C++条款36:绝不重新定义继承而来的non-virtual函数(Never redefine an inherited non-virtual function)
Effective C++条款36:绝不重新定义继承而来的non-virtual函数(Never redefine an inherited non-virtual function)原创 2023-01-12 15:52:02 · 443 阅读 · 0 评论 -
Effective C++条款35:考虑 virtual 函数以外的其他选择(Consider alternatives to virtual functions)
Effective C++条款35:考虑 virtual 函数以外的其他选择(Consider alternatives to virtual functions)原创 2022-12-28 14:19:02 · 505 阅读 · 0 评论 -
Effective C++条款34:区分接口继承和实现继承
Effective C++条款34:区分接口继承和实现继承(Differentiate between inheritance of interface and inheritance of implementation)原创 2022-12-22 22:05:31 · 706 阅读 · 0 评论 -
Effective C++条款33:避免遮掩继承而来的名称(Avoid hiding inherited names)
Effective C++条款33:避免遮掩继承而来的名称(Avoid hiding inherited names)原创 2022-12-20 19:38:18 · 529 阅读 · 0 评论 -
Effective C++条款32:确定你的public继承塑模出is-a关系(Make sure public inheritance models “is-a.“)
Effective C++条款32:确定你的public继承塑模出is-a关系(Make sure public inheritance models "is-a.")原创 2022-12-13 16:07:50 · 410 阅读 · 0 评论 -
Effective C++条款31:将文件间的编译依存关系降至最低(Minimize compilation dependencies between files)
Effective C++条款31:将文件间的编译依存关系降至最低(Minimize compilation dependencies between files)原创 2022-12-13 10:49:01 · 560 阅读 · 0 评论 -
Effective C++条款30:透彻了解inlining的里里外外(Understand the ins and outs of inlining)
Effective C++条款30:透彻了解inlining的里里外外(Understand the ins and outs of inlining)原创 2022-12-10 22:59:59 · 674 阅读 · 0 评论 -
Effective C++条款29:为“异常安全”而努力是值得的(Strive for exception-safe code)
Effective C++条款29:为“异常安全”而努力是值得的(Strive for exception-safe code)原创 2022-12-09 15:38:28 · 992 阅读 · 0 评论 -
Effective C++条款28:避免返回handles指向对象内部成分(Avoid returning “handles“ to object internals)
Effective C++条款28:避免返回handles指向对象内部成分(Avoid returning “handles“ to object internals)原创 2022-12-08 12:04:15 · 535 阅读 · 0 评论 -
Effective C++条款27:尽量少做转型动作(Minimize casting)
Effective C++条款27:尽量少做转型动作(Minimize casting)原创 2022-12-06 11:30:09 · 506 阅读 · 0 评论 -
Effective C++条款26:尽可能延后变量定义式的出现时间(Postpone variable definitions as long as possible)
Effective C++条款26:尽可能延后变量定义式的出现时间(Postpone variable definitions as long as possible)原创 2022-12-05 15:21:58 · 1292 阅读 · 0 评论 -
Effective C++条款25:考虑写出一个不抛异常的swap函数(Consider support for a non-throwing swap)
Effective C++条款25:考虑写出一个不抛异常的swap函数(Consider support for a non-throwing swap)原创 2022-12-05 00:16:12 · 414 阅读 · 0 评论 -
Effective C++条款24:若所有参数皆需类型转换,请为此采用non-member函数
Effective C++条款24:若所有参数皆需类型转换,请为此采用non-member函数(Declare non-member functions when type conversions should apply to all parameters)原创 2022-12-03 14:35:05 · 501 阅读 · 0 评论 -
Effective C++条款23:宁以 non-member、non-friend替换member函数
Effective C++条款23:宁以 non-member、non-friend替换member函数(Prefer non-member non-friend functions to member functions)原创 2022-12-03 10:21:28 · 355 阅读 · 2 评论 -
Effective C++条款22:将成员变量声明为private(Declare data members private)
Effective C++条款22:将成员变量声明为private(Declare data members private)原创 2022-12-01 23:30:16 · 708 阅读 · 0 评论 -
Effective C++条款21:必须返回对象时,别妄想返回其reference
Effective C++条款21:必须返回对象时,别妄想返回其reference(Don't try to return a reference when you must return an object)原创 2022-12-01 10:46:08 · 656 阅读 · 0 评论 -
Effective C++条款20:宁以pass-by-reference-to-const替换pass-by-value
Effective C++条款20:宁以pass-by-reference-to-const替换pass-by-value(Prefer pass-by-reference-to-const to pass-by-value)原创 2022-11-30 16:08:14 · 562 阅读 · 0 评论 -
Effective C++条款19:设计class犹如设计type(Treat class design as type design)
Effective C++条款19:设计class犹如设计type(Treat class design as type design)原创 2022-11-30 11:50:44 · 657 阅读 · 0 评论 -
Effective C++条款18:让接口容易被正确使用,不容易被误用
Effective C++条款18:让接口容易被正确使用,不容易被误用(Make interfaces easy to use correctly and hard to use incorrectly)原创 2022-11-30 11:26:10 · 680 阅读 · 0 评论 -
Effective C++条款17:以独立语句将newed对象置入智能指针
Effective C++条款17:以独立语句将newed对象置入智能指针(Store newed objects in smart pointers in standalone statements)原创 2022-11-30 00:59:09 · 696 阅读 · 0 评论 -
Effective C++条款16:成对使用new和delete时要采取相同形式(Use the same form in corresponding uses of new and delete)
Effective C++条款16:成对使用new和delete时要采取相同形式(Use the same form in corresponding uses of new and delete)原创 2022-11-29 16:41:21 · 235 阅读 · 0 评论 -
Effective C++条款15:在资源管理类中提供对原始资源的访问(Provide access to raw resources in resource-managing classes)
Effective C++条款15:在资源管理类中提供对原始资源的访问(Provide access to raw resources in resource-managing classes)原创 2022-11-29 13:26:02 · 497 阅读 · 0 评论 -
Effective C++条款14:在资源管理类中小心拷贝行为(Think carefully about copying behavior in resource-managing classes)
Effective C++条款14:在资源管理类中小心拷贝行为(Think carefully about copying behavior in resource-managing classes)原创 2022-11-29 10:25:39 · 389 阅读 · 0 评论 -
Effective C++条款13:以对象管理资源(Use objects to manage resources)
Effective C++条款13:以对象管理资源(Use objects to manage resources)原创 2022-11-29 09:11:05 · 354 阅读 · 0 评论 -
Effective C++条款12:复制对象时勿忘其每一个成份(Copy all parts of an objects)
Effective C++条款12:复制对象时勿忘其每一个成份(Copy all parts of an objects)原创 2022-11-23 22:45:49 · 261 阅读 · 0 评论 -
Effective C++条款11:在operator=中处理“自我赋值”(Handle assignment to self in operator=)
Effective C++条款11:在operator=中处理“自我赋值”(Handle assignment to self in operator=)原创 2022-11-23 14:22:05 · 607 阅读 · 0 评论 -
Effective C++条款10:令operator=返回一个reference to *this(Have assignment operators return a reference to *
Effective C++条款10:令operator=返回一个reference to *this(Have assignment operators return a reference to *this)原创 2022-11-23 10:43:01 · 182 阅读 · 0 评论 -
Effective C++条款09:绝不在构造和析构过程中调用virtual函数
Effective C++条款09:绝不在构造和析构过程中调用virtual函数(Never call virtual functions during construction or destruction)原创 2022-11-22 23:05:05 · 442 阅读 · 0 评论 -
Effective C++条款08:别让异常逃离析构函数(Prevent exceptions from leaving destructors)
Effective C++条款08:别让异常逃离析构函数(Prevent exceptions from leaving destructors)原创 2022-11-21 14:20:38 · 279 阅读 · 0 评论 -
Effective C++条款07:为多态基类声明virtual析构函数(Declare destructors virtual in polymorphic base calsses)
Effective C++条款07:为多态基类声明virtual析构函数(Declare destructors virtual in polymorphic base calsses)原创 2022-11-20 23:34:12 · 269 阅读 · 0 评论 -
Effective C++条款06:若不想使用编译器自动生成的函数,就该明确拒绝(Explicitly disallow the use of compiler-generated functions
Effective C++条款06:若不想使用编译器自动生成的函数,就该明确拒绝(Explicitly disallow the use of compiler-generated functions原创 2022-11-19 19:38:42 · 204 阅读 · 0 评论 -
Effective C++条款05:了解C++默默编写并调用哪些函数(Know what functions C++ silently writes and calls)
Effective C++条款05:了解C++默默编写并调用哪些函数(Know what functions C++ silently writes and calls)原创 2022-11-19 15:15:33 · 584 阅读 · 0 评论 -
Effective C++条款04:确定对象被使用前已被初始化(Make sure that objects are initialized before they‘re used)
Effective C++条款04:确定对象被使用前已被初始化(Make sure that objects are initialized before they're used)原创 2022-11-18 23:14:54 · 392 阅读 · 0 评论 -
Effective C++条款03:尽可能使用const(Use const whenever possible)
Effective C++条款03:尽可能使用const(Use const whenever possible)原创 2022-11-18 00:49:28 · 634 阅读 · 0 评论