This book introduces the concept of generic components-reusable design templates that produce boilerplate code for compiler consumption-all within C++.
Author: Andrei Alexandrescu
Publisher: Addison-Wesley Professional
Presents a collection of reusable design artifacts, called generic components, together with the techniques that make them possible. The author describes techniques for policy-based design, partial template specialization, typelists, and local classes, then goes on to implement generic components for smart pointers, object factories, functor objects, the Visitor design pattern, and multimethod engines. c. Book News Inc.