- 本书目前有两版,第一版出版日期为2002年11月22日,中文版直到2004年才出版。为了跟进现代C++的发展,第二版于2017年9月25日出版。书中代码见《C++ Templates 2nd》官方源码。
- 01 函数模板(Function Template)
- 02 类模板(Class Template)
- 03 非类型模板参数(Nontype Template Parameter)
- 04 可变参数模板(Variadic Template)
- 05 Tricky Basic
- 06 移动语义与enable_if
- 07 按值传递与按引用传递(By Value or by Reference?)
- 08 编译期编程(Compile-Time Programming)
- 09 模板实战(Using Templates in Practice)
- 10 泛型库(Generic Library)
- 11 深入模板基础(Fundamentals in Depth)
- 12 模板中的名称(Names in Template)
- 13 实例化(Instantiation)
- 14 模板实参演绎(Template Argument Deduction)
- 15 特化与重载(Specialization and Overloading)
- 16 Traits的实现(Implementing Traits)
- 17 基于类型属性的重载(Overloading on Type Property)
- 18 模板与继承(Templates and Inheritance)
- 19 桥接静态多态与动态多态(Bridging Static and Dynamic Polymorphism)
- 20 元编程(Metaprogramming)
- 21 Typelist
- 22 Tuple
- 23 Discriminated Union
- 24 表达式模板(Expression Template)
- 25 调试模板(Debugging Template)