满招损,谦受益。
--《尚书》
:

More Effective C++

More Effective C++

作者: 迈耶斯

出版社: 机械工业出版社

出版时间: 2006-4

价格: 39.00元

ISBN: 9787111188308

【🔥扫码右侧二维码】

【📱扫码极速下载】浏览器自动唤起

💎独家资源·限时共享

作者简介:

Scott Meyers 拥有布朗大学计算机科学博士学位,是世界上最著名的C++软件开发权威之一。他的“Effective C++两卷本”(《Effective C++》和《More Effective C++》),开辟了技术图书写作的新风格。他曾担任《C++Report》杂志的专栏作家,经常为《C/C++Users Journal》和《Dr.Dobb's Journal》撰稿。

内容简介:

一些经过验证的用来改善程序效率的方法,包括检验C++语言特性所带来的时间和空间上的成本。   全面地描述了C++专家所使用的高级技术,包括placement new、virtual constructors、smart pointers、reference counting、proxy classes和double-dispatching等。   以实例说明异常处理带给C++类和函数的冲击。   介绍新的语言特性,包括bool、mutable、explicit、namespaces、成员模板、标准模板库等。如果你的编译器不支持这些特性,本书还介绍了如何不利用它们完成工作。

目录:

AcknowledgmentsIntroductionBasics Item 1: Distinguish between pointers and references. Item 2: Prefer C++-style casts. Item 3: Never treat arrays polymorphically. Item 4: Avoid gratuitous default constructors.Operators Item 5: Be wary of user-defined conversion functions. Item 6: Distinguish between prefix and postfix forms of increment and decrement operators. Item 7: Never overload &&, II, or Item 8: Understand the differentmeanings of new and delete.Exceptions Item 9: Use destructors to prevent resource leaks. Item 10: Prevent resource leaks in constructors. Item 11: Prevent exceptions from leaving destructors. Item 12: Understand how throwing an exception differs from passing a parameter or calling a virtual function. Item 13: Catch exceptions by reference. Item 14: Use exception specifications judiciously. Item 15: Understand the costs of exception handling.Efficiency Item 16: Remember the 80-20 rule. Item 17: Consider using lazy evaluation. Item 18: Amortize the cost of expected computations. Item 19: Understand the origin of temporary objects. Item 20: Facilitate the return value optimization. Item 21: Overload to avoid implicit type conversions. Item 22: Consider using op= instead of stand-alone op. Item 23: Consider alternative libraries. Item 24: Understand the costs of virtual functions, multiple inheritance, virtual base classes, and RTrl.Techniques Item 25: Virtualizing constructors and non-member functions. Item 26: Limiting the number of objects of a class. Item 27: Requiring or prohibiting heap-based objects. Item 28: Smart pointers. Item 29: Reference counting. Item 30: Proxy classes. Item 31: Making functions virtual with respect to more than one objectMiscellany Item 32: Program in the future tense. Item 33: Make non-leaf classes abstract. Item 34: Understand how to combine C++ and C in the same program. Item 35: Familiarize yourself with the language standard.Recommended ReadingAn auto-ptr ImplementationGeneral IndexIndex of Example Classes, Functions, and Templates

相关推荐

追问
2025-03-04 9.3k
长安的荔枝
2025-03-05 4.8k

评论

2024-06-18 03:07:01
书中自有颜如玉发表
《More Effective C++》这本书,用详实的数据和案例,阐述了高效使用C++语言的技巧和方法,对于想要提升C++开发水平的人员来说,是一本不可多得的参考书。迈耶斯大师深入浅出的讲解,不仅帮助我理解了C++的底层机制,还让我掌握了实用的编程技巧,极大地提升了我的开发效率。
2024-06-18 03:07:01
半盏清茶发表
迈耶斯的《More Effective C++》堪称C++编程的葵花宝典。这本书从语言特性到编程技巧,系统全面地介绍了提高C++代码效率的方法。作为一名资深的C++开发人员,我深感这本书的价值,它帮助我解决了许多疑难杂症,大大缩短了我的开发周期。
2024-06-18 03:07:01
代码狂人发表
《More Effective C++》是C++语言的进阶指南。迈耶斯大师用生动易懂的语言,讲述了C++中一些鲜为人知的特性和技巧,让我大开眼界。通过本书的学习,我掌握了placement new、smart pointers等高级技术,极大地提升了我的代码质量和执行效率。
2024-06-18 03:07:01
编程小能手发表
大神级著作!《More Effective C++》这本书,让我对C++的理解提升到了一个新的高度。迈耶斯大师将C++的精髓娓娓道来,既有理论上的阐述,又有大量的代码示例,让我深入地掌握了C++的底层原理和最佳实践。强烈推荐给所有想要提高C++水平的开发者。
2024-06-18 03:07:01
代码艺术家发表
《More Effective C++》是一本C++编程的教科书,也是一本工具书。它提供了大量实用且有效的C++编程技巧和方法,帮助我突破了瓶颈,大幅提升了我的开发能力。迈耶斯大师的讲解清晰透彻,既有理论深度,又有实践指导,让我在学习的过程中受益匪浅。
登录发表评论