Jump to ratings and reviews
Rate this book

C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond

Rate this book
Practical Metaprogramming for Working C++ Developers

Using metaprogramming techniques, you can engineer software with greater quality, portability, and reusability. You can write more expressive and elegant code, and waste less time on "boilerplate." In short, you won't just be more productive: you'll have more fun, too. If you code with C++, the Boost MPL offers high-level facilities that make metaprogramming even more useful and accessible. Now, for the first time, there's a book that demystifies both metaprogramming and the Boost MPL.

Selected to write this book by C++ creator Bjarne Stroustrup, Boost MPL community leaders David Abrahams and Aleksey Gurtovoy are uniquely qualified to explain metaprogramming to experienced C++ developers. In this book, they systematically illuminate the "how," "why," and "when" of metaprogramming, thoroughly explain its advantages, and show exactly how to apply it in real-world development projects.

Coverage includes:

Fundamental metaprogramming concepts: traits, type manipulation, type wrappers, and more An in-depth look at metafunctions and metafunction classes Sequences, algorithms, iterators, diagnostics, views, iterator adaptors, and more Boost MPL: motivation, usage, design, implementation, and practical examples Lessons and best practices for C++ template metaprogramming Crossing the compile-time/runtime boundary Domain-Specific Embedded Languages, including a complete DSEL design walkthrough Improving compile-time performance A Boost MPL case study in event handling

The CD-ROM contains all Boost C++ libraries, including the Boost Metaprogramming Library and reference documentation, along with all of the book's sample code and extensive supplementary material.

557 pages, Kindle Edition

First published December 10, 2004

17 people are currently reading
126 people want to read

About the author

David Abrahams

4 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
32 (32%)
4 stars
41 (41%)
3 stars
20 (20%)
2 stars
7 (7%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for huydx.
33 reviews15 followers
January 9, 2014
This book explain many corners of template meta-programming in C++,but mainly about Boost::mpl library.
Explanation is very detailed and example is self-explained too.
However, flow of this book is hard to understand at the first time, I have to read again and again to get exactly what the authors trying to say.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.