| help | account  


C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond
View Larger Image
David Abrahams, Aleksey Gurtovoy
Addison-Wesley, Paperback, Bk&CD edition, Published December 2004, 373 pages, ISBN 0321227255
List Price: $49.99
Our Price: $34.95
You Save: $15.04 (30% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock

Customer Reviews: 1     Average Customer Rating:

Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

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.

Table of Contents

Preface.

Acknowledgements.

Making the Most of This Book.

1. Introduction.

2. Traits and Type Manipulation.

3. A Deeper Look at Metafunctions.

4. Integral type wrappers and operations.

5. Sequences and Iterators.

6. Algorithms.

7. Views and iterator adaptors.

8. Diagnostics.

9. Crossing the Compile-Time/Runtime Boundary.

10. Domain-Specific Embedded Languages.

11. A DSEL Design Walkthrough.

Appendix A. (An Introduction to Preprocessor Metaprogramming).

Appendix B. (The typename and template Keywords).

Appendix C. (Compile Time Performance).

Appendix D. (MPL Portability Summary).

Supplementary Material.

Things that might be covered in a Vol II.

Index.


Customer Reviews

Customer Reviews: 1     Average Customer Rating:

Nov 3, 2007     Tony from Colorado
A "must-have" for generic programmers
If you like run-time STL, you'll love compile-time STL. After searching the web for bits/pieces on template metaprogramming, I finally found all I needed in this book. I've been a software developer for 32 years, so thought it would be too hard to teach this old dog a trick this radically new... The authors obviously know this subject inside and out, and know how to present it.. I'm refactoring some very large libraries using DSELs, and find the result to be very compact and easily optimized by the compiler. You must get this book.



Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account