More Effective C++:35 new ways to lmprove your programs and designs
副标题:无
分类号:
ISBN:9787111210702
微信扫一扫,移动浏览光盘
简介
本书所给出的建议都是源于日常编程实践的一些真知灼见。和它的姊
妹篇《Effective C++》一样,本书是每个C++开发者必不可少的书籍。
作者Meyers在本书中为我们呈现了35种用于提升程序和设计的新方法
。根据多年的经验,Meyers解释了如何才能编写更高效的C++软件:运行效
率更高,更为健壮、更为稳定、更容易移植以及更易于重用。简而言之,
就是如何编写更好的C++软件。
本书主要内容:
·一些经过实践检验的用来改善程序效率的方法,包括检验C++语言特
性所带来的时间和空间上的开销。
·全面地描述了C++专家所使用的高级技术,包括placemerlt new、虚
构造函数、智能指针、引用计数、代理类和双重分派等。
·以实例说明异常处理从结构上及行为上给C++类和函数带来的巨大影
响。
·从实用的角度介绍新的语言特性,包括bool、mIJtable、explicit
、namespaces、成员模板以及标准模板库等。如果你的编译器还不支持这
些新特性,Meyers会告诉你如何使用其他的方法来更多>>
目录
Acknowledgments
Introduction
Basics
Item 1: Distinguish between pointers and references.
Item 2: Prefer C++-style casts.
Item 3: Never treat arrays polymorphically.
Item 4: Avoid gratuitous default constructor's.
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 &&, ] ], or ,.
Item 8: Understand the different meanings of new
and delete.
Exceptions
Item 9: Use destructors to prevent resource leaks.
Item I0: Prevent resource leaks in constructors.
Item I I: 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.
I
Introduction
Basics
Item 1: Distinguish between pointers and references.
Item 2: Prefer C++-style casts.
Item 3: Never treat arrays polymorphically.
Item 4: Avoid gratuitous default constructor's.
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 &&, ] ], or ,.
Item 8: Understand the different meanings of new
and delete.
Exceptions
Item 9: Use destructors to prevent resource leaks.
Item I0: Prevent resource leaks in constructors.
Item I I: 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.
I
More Effective C++:35 new ways to lmprove your programs and designs
- 名称
- 类型
- 大小
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问
Video Player
×
Audio Player
×
pdf Player
×