文档介绍:Modern C++ Design: Generic Programming and Design Patterns Applied
By Andrei Alexandrescu
Publisher : Addison Wesley
Pub Date : February 01, 2001
ISBN : 0-201-70431-5
Table of
Pages : 352
Contents
Modern C++ Design is an important book. Fundamentally, it demonstrates 'generic
patterns' or 'pattern templates' as a powerful new way of creating extensible designs in
C++--a new way bine templates and patterns that you may never have dreamt was
possible, but is. If your work involves C++ design and coding, you should read this book.
Highly mended.-Herb Sutter
What's left to say about C++ that hasn't already been said? Plenty, it turns out.-From the
Foreword by John Vlissides
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 ponents-reusable design templates that
produce boilerplate code piler consumption-all within C++. ponents
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
ponents and goes on to implement industrial strength ponents for
real-world applications. Recurring issues that C++ developers face in their day-to-day
activity are discussedT in depth and implemented in a generic way. These include:
• Policy-based designE for flexibility
• Partial template specializationA
• Typelists-powerful type manipulationM structures
• Patterns such as Visitor, Singleton, Command, and Factories