Thinking in C++ Vol 2 - Practical Programming |
Prev |
Home |
Next |
The C++ template facility goes far
beyond simple containers of T. Although the original motivation was to
enable type safe, generic containers, in modern C++, templates are also used to
generate custom code and to optimize program execution through compile time
programming constructs.
In this chapter we offer a practical look at the power (and
pitfalls) of programming with templates in modern C++. For a more complete
analysis of template-related language issues and pitfalls, we recommend the
superb book by Daveed Vandevoorde and Nico Josuttis.
Thinking in C++ Vol 2 - Practical Programming |
Prev |
Home |
Next |