
As an Amazon Associate and affiliate partner, Menrva Books earns from qualifying purchases. Learn more
In Modern C++ Design, Andrei Alexandrescu opens new vistas for C++ programmers. Displaying extraordinary creativity and programming virtuosity, Alexandrescu offers a cutting-edge approach to design that unites design patterns, generic programming, and C++, enabling programmers to achieve expressive, flexible, and highly reusable code.This book introduces the concept of generic components―reusable design templates that produce boilerplate code for compiler consumption―all within C++. Generic components enable an easier and more seamless transition from design to application code, generate code that better expresses the original design intention, and support the reuse of design structures with minimal recoding.The author describes the specific C++ techniques and features that are used in building generic components and goes on to implement industrial strength generic components for real-world applications. Recurring issues that C++ developers face in their day-to-day activity are discussed in depth and implemented in a generic way. These include: Policy-based design for flexibility Partial template specialization Typelists―powerful type manipulation structures Patterns such as Visitor, Singleton, Command, and Factories Multi-method enginesFor each generic component, the book presents the fundamental problems and design options, and finally implements a generic solution.
This book investigates how the integration of generic programming and design patterns can produce highly flexible, reusable, and expressive C++ code. Andrei Alexandrescu, a recognized expert in C++ development, provides a technical framework for building generic components that automate boilerplate code generation. By leveraging advanced template metaprogramming, the author argues that developers can bridge the gap between abstract design intentions and concrete application implementations.
What You Will Find
Experts and developers frequently cite this work as a foundational text for understanding the power of template metaprogramming in C++. Readers often note the high technical density of the prose, which requires a strong existing grasp of C++ syntax to fully implement the provided generic components.
Page Count:
360
Publication Date:
2001-02-13
Publisher:
Addison-Wesley Professional
ISBN-10:
0201704315
ISBN-13:
9780201704310
No comments yet. Be the first to share your thoughts!