More Effective C++(英文版)
作者:(美)迈耶斯 著
出版:机械工业出版社 2006.4
页数:318
定价:39.00 元
ISBN-10:7111188306
ISBN-13:9787111188308
去豆瓣看看 Acknowledgments
Introduction
Basics
Item1:Distinguish between pointers and references.
Item2:Prefer C++-style casts.
Item3:Never treat arrays polymorphically.
Item4:Avoid gratuitous default constructors.
Operators
Item5:Be wary of user-defined conversion functions.
Item6:Distinguish between prefix and postfix forms of increment and decrement oferators.
Item7:Never overload &&,︴︴,or,.
Item8:Understand the different meanings of new and delete.
Exceptions
Item9:Use destructors to Prevent resource leaks.
Item10:Prevent resource leaks in comstructors.
Item11:Prevent exceptions from leaving destructors.
Item12:Understand how throwing an exception differs from passing a parameter or calling a virtual function.
Item13:Catch exception by reference.
Item14:Use exception specifications judiciously
Item15:Understand the costs of exception handling
Efficiency
Item16:Remember the 80-20 rule.
Item17:Consider using lazy evaluation.
Item18:Amortize the cost of expected computations.
Item19:Understand the origih of temporary objects.
Item20:Facilitate the return value optimization.
Item21:Overload to avoid implicit type conversions.
Item22:Consider using op=instead of stand-alone op.
Item23:Consider alternative libraries.
Item24:Understand the costs of virtual functions,multiple inheritance,virtual base classes,and RTTl
……
Scott Meyers拥有布朗大学计算机科学博士学位,是世界上最著名的C++软件涵盖发权威之一。他的“More Effective C++两卷本”(《Effective C++》和《 More Effective C++》),开辟了技术图书写作的新风格。他曾担任《C++Report》杂志的专栏作家,经常为《C++ Users Journal》和《Dr.Dobbs Journal》撰稿。
一些经过验证的用来改善程序效率的方法,包括检验C++语言特性所带来的时间和空间上的成本。
全面地描述了C++专家所使用的高级技术,包括placement new、virtual constructors、smart pointers、reference counting、proxy classes和double-dispatching等。
以实例说明异常处理带给C++类和函数的冲击。
介绍新的语言特性,包括bool、mutable、explicit、namespaces、成员模板、标准模板库等。如果你的编译器不支持这些特性,本书还介绍了如何不利用它们完成工作。
比价列表