By Andrei Alexandrescu
In Modern C++ Design , Andrei Alexandrescu opens new vistas for C++ programmers. exhibiting remarkable creativity and programming virtuosity, Alexandrescu deals a state-of-the-art method of layout that unites layout styles, customary programming, and C++, permitting programmers to accomplish expressive, versatile, and hugely reusable code.
This ebook introduces the concept that of familiar components—reusable layout templates that produce boilerplate code for compiler consumption—all inside of C++. typical elements allow a better and extra seamless transition from layout to program code, generate code that larger expresses the unique layout goal, and aid the reuse of layout constructions with minimum recoding.
The writer describes the explicit C++ innovations and contours which are utilized in development time-honored elements and is going directly to enforce business energy regular elements for real-world functions. ordinary matters that C++ builders face of their day by day job are mentioned intensive and carried out in a known means. those include:
- Policy-based layout for flexibility
- Partial template specialization
- Typelists—powerful sort manipulation structures
- Patterns comparable to customer, Singleton, Command, and Factories
- Multi-method engines
For each one universal part, the ebook provides the elemental difficulties and layout thoughts, and eventually implements a prevalent resolution.
In addition, an accompanying website, http://www.awl.com/cseng/titles/0-201-70431-5, makes the code implementations on hand for the typical elements within the publication and offers a loose, downloadable C++ library, known as Loki, created by means of the writer. Loki offers out-of-the-box performance for almost any C++ venture.
Get a value-added carrier! attempt all of the examples from this publication at www.codesaw.com. CodeSaw is a loose on-line studying software on the way to scan with dwell code out of your booklet correct on your browser.