C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond [With CD-ROM]
Conditions
A read copy that remains in clean condition.
Formats
Conditions
A read copy that remains in clean condition.
Conditions
A read copy that remains in clean condition.
Formats
Conditions
A read copy that remains in clean condition.
The operative word in the title is "Metaprogramming". If your looking for C++ template programming, your better off going elsewhere. Metaprogramming is hard, uses an arcane syntax, and the compilers give you very little help. It's not for the faint of heart. BUT is this is where you want to go, then this is the book to have. The authors take a very advanced complex topic and break it down to comprehensible chunks. They introduce you to the best metaprogramming library (Boost::MPL) and give you a comprehensive context to make useful applications.
I am not a meta programming expert, however I learned a lot from this great book. I suggest first to read Alexandrescu's Modern C++ first and a learn basic techniques then get this book to be able understand the mpl better.
C++ Template Metaprogramming is a very valuable book. For me, already chapter 2 was worth the money of the complete book. It showed me how to think in Templates and Metafunctions. That helped me to understand a lot of the other template technics. As a user of boost.python I always wondered what's possible with templates. My personal target is to understand what's going on in that magic library. This book brought me a very big step further. I suggest reading this book before reading any of the other Template books like 'Modern C++ Design'. But probably you don't need no other book after reading this one.
This book describes the boost MPL library. Its a very useful guide to this library and it includes enough examples to walk you through how to use it. Secondly the book explains Meta-programming. This is a new concept to a lot of C++ programmers and old hat to LISP programmers. The C++ pre-compiler is constrained to integral types as constraints. But there are a host of tricks you can use within that constraint to build libraries that adapt to their calling structure. Thus generating code that is as efficient as hand written. Of course with your compiler, your milage may vary. The other great thing about using this library, MPL, is that where you would write repeticious template code for every parameter in a template'd library like Tuples, you can automate with it with MPL. Meta programming is a pretty new concept within the C++ community and this book will give us a common language to talk about it. There are other resources on the net, but this book pulls them together. Highly recommended for expert C++ programmers, C++ Library writers and intermediate programmers study'ing to become experts. If you finished Andrei's book, "Modern C++ Design", this is a great next book to buy and own.
This is a really interesting book. The template metaprogramming technical topics covered are extremely advanced, and right at the leading edge of C++ library development, yet the step-by-step presentation makes the material understandable even to intermediate programmers. Since the book draws its examples from code that works with the Boost libraries (supplied on a CD), readers can try the examples and play around with them to see how they work. Some of the libraries discussed (Boost Type Traits, Boost Bind) are well along to becoming part of the C++ standard via a library technical report, so they will eventually become available to every C++ programmer. The bulk of the book is devoted to the Boost Metaprogramming Library, which packages up a lot of advanced techniques into accessible form. One issue with template metaprogramming is that compile times can get out of hand. The book includes an appendix with hints on avoiding the problem, together with test timings for a half-dozen popular compilers. I really like the timings; too many other authors make assertions about efficiency without supporting data. I would guess that this book will be of interest to intermediate and advanced C++ programmers interested in library development. And less interesting to beginning programmers, or programmers who never package up their creations into libraries.