It ain’t what you don’t know that gets you into trouble.
It’s what you know for sure that just ain’t so.
– Mark Twain
Over the last two decades, templates have developed from a relatively simple idea to the backbone of most advanced C++ programming. In particular, templates are key to techniques for
• improving type safety (e.g., by eliminating the use of casts; §12.5);
• raising the general level of abstraction ...