More Effective C++: 35 New Ways to Improve Your Programs and DesignsMore than 150,000 copies in print!
Praise for Scott Meyers’ first book, Effective C++: “I heartily recommend Effective C++ to anyone who aspires to mastery of C++ at the intermediate level or above.”– The C/C++ User’s Journal From the author of the indispensable Effective C++, here are 35 new ways to improve your programs and designs. Drawing on years of experience, Meyers explains how to write software that is more effective: more efficient, more robust, more consistent, more portable, and more reusable. In short, how to write C++ software that’s just plain better. More Effective C++ includes:
More Effective C++ is filled with pragmatic, down-to-earth advice you’ll use every day. Like Effective C++ before it, More Effective C++ is essential reading for anyone working with C++. |
Contents
Introduction | |
Basics | |
Operators | |
Exceptions | |
Catch exceptions by reference | |
Use exception specifications judiciously | |
Understand the costs of exception handling | |
Consider alternative libraries | |
Understand the costs of virtual functions multiple inheritance virtual base classes and RTTI | |
Techniques | |
Virtualizing constructors and nonmember functions | |
Limiting the number of objects of a class | |
Requiring or prohibiting heapbased objects | |
Smart pointers | |
Reference counting | |
Efficiency | |
Remember the 8020 rule | |
Consider using lazy evaluation | |
Amortize the cost of expected computations | |
Understand the origin of temporary objects | |
Facilitate the return value optimization | |
Overload to avoid implicit type conversions | |
Consider using op instead of standalone | |
Proxy classes | |
Miscellany | |
Recommended Reading | |
An auto_ptr Implementation | |
General Index | |

