![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Effective C++
文章平均质量分 84
且随疾风前行->
《--疾风亦有归途--》
展开
-
《Effective C++》(总结笔记) 章节二(下):构造/析构/赋值运算 Constructors,Destructors,and Assignment Operators
目录条款09:绝不在构造和析构过程中调用 virtual函数Never call virtual functions during construction or destruction.条款10:令 operator=返回一个reference to *thisHave assignment operators return a reference to *this.条款11:在 operator=中处理“自我赋值”Handle assignment to self in oper原创 2023-02-16 08:45:09 · 269 阅读 · 0 评论 -
《Effective C++》(总结笔记) 章节二(上):构造/析构/赋值运算 Constructors,Destructors,and Assignment Operators
目录条款05:了解C++默认编写并调用哪些函数Know what functions C++ silently writes and calls.条款06:若不想使用编译器自动生成的函数,就该明确拒绝Explicitly disallow the use of compiler-generated functions you do not want.条款07:为多态基类声明virtual析构函数Declare destructors virtual in polymorphic原创 2023-02-12 19:41:17 · 203 阅读 · 0 评论 -
《Effective C++》(总结笔记) 章节一:Accustoming Yourself to C++让自己习惯C++
目录条款01:视C++为一个语言联邦View C++ as a federation of languages次语言一 C:次语言二 面向对象C++:次语言三 模板C++:次语言四 STL:条款02:尽量以const,enum,inline替换#definePreferconst,enum,inline to #define条款03:尽可能使用constUse const whenever possibleconst用法:const成员函数:在const原创 2022-10-24 14:20:31 · 495 阅读 · 0 评论