More Effective C++: 35 New Ways to Improve Your Programs and Designs

Front Cover
Pearson Education, Dec 29, 1995 - Computers - 336 pages

More 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:

  • Proven methods for improving program efficiency, including incisive examinations of the time/space costs of C++ language features
  • Comprehensive descriptions of advanced techniques used by C++ experts, including placement new, virtual constructors, smart pointers, reference counting, proxy classes, and double-dispatching
  • Examples of the profound impact of exception handling on the structure and behavior of C++ classes and functions
  • Practical treatments of new language features, including bool, mutable, explicit, namespaces, member templates, the Standard Template Library, and more. If your compilers don’t yet support these features, Meyers shows you how to get the job done without them.

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

Acknowledgments
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
Index of Example Classes Functions and Templates
Copyright

Common terms and phrases

About the author (1995)

Scott Meyers is one of the world's foremost authorities on C++, providing training and consulting services to clients worldwide. He is the author of the best-selling Effective C++ series of books (Effective C++, More Effective C++, and Effective STL) and of the innovative Effective C++ CD. He is consulting editor for Addison Wesley's Effective Software Development Series and serves on the Advisory Board for The C++ Source (http://www.artima.com/cppsource). He holds a Ph.D. in Computer Science from Brown University. His web site is http://www.aristeia.com.



Bibliographic information