摘要: 《Effective C++》第三版-2. 构造析构赋值运算(Constructors,Destructors,and Assignment Operators) 目录条款05:了解C++默默编写并调用哪些函数(Know what functions C++ silently writes and calls)自动生成的函数举例说明条款06:若不想使用编译器自动生成的函数,就该明确拒绝(Explicitly disallow the use of compil 阅读全文
posted @ 2024-04-28 10:10 Roanapur 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 《Effective C++》第三版-1. 让自己习惯C++(Accustoming Yourself to C++) 目录条款01:视C++为一个语言联邦(View C++ as a federation of languages)条款02:尽量以const、enum、inline替换#define(Prefer consts, enums, and inlines to #define)替换原因两种特殊常量形似函 阅读全文
posted @ 2024-04-28 09:51 Roanapur 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 《Effective C++》第三版-0. 导读(Introduction) 目录术语(Terminology)命名习惯(Naming Conventions)关于线程(Threading Consideration)TR1和Boost 术语(Terminology) 声明式(declaration):告诉编译器某个东西的名称和类型(type),但略去细节 extern in 阅读全文
posted @ 2024-04-28 09:47 Roanapur 阅读(0) 评论(0) 推荐(0) 编辑