Table of Contents
Preface.
Acknowledgments.
1. About This Book.
I. THE BASICS.
2. Function Templates.
3. Class Templates.
4. Nontype Template
Parameters.
5. Tricky Basics.
6. Using Templates in Practice.
7.
Basic Template Terminology.
II. TEMPLATES IN DEPTH.
8. Fundamentals in Depth.
9. Names in Templates.
10.
Instantiation.
11. Template Argument Deduction.
12. Specialization and
Overloading.
13. Future Directions.
III. TEMPLATES AND DESIGN.
14. The Polymorphic Power of Templates.
15. Traits and Policy
Classes.
16. Templates and Inheritance.
17. Metaprograms.
18.
Expression Templates.
IV. ADVANCED APPLICATIONS.
19. Type Classification.
20. Smart Pointers.
21. Tuples.
22.
Function Objects and Callbacks.
A: The One-Definition Rule.
B: Overload Resolution.
Bibliography.
Newsgroups.
Books and Web Sites.
Glossary.