此仓库记录我看《C++ Templates》第二版(目前只有英文版)的读书笔记
代码在code文件夹里
以下为笔记目录:
- 1.1 A First Look at Function Template /初识函数模板
- 1.2 Template Argument Deduction /模板实参推断
- 1.3 Multiple Template Parameters /多模板参数
- 1.4 Default Template Arguments /默认模板实参
- 1.5 Overloading Function Template /重载函数模板
-
[11.2 dealing with member function and additional arguments ](ch11/dealing with memf.md)
-
[11.3 supporting function objects ](ch11/Supporting Function Objects.md)
-
[11.4 wrapping calls ](ch11/wrapping calls)
- 14.1 On-Demand Instantiation /按需实例化
- 14.2 Lazy Instantiation /延迟实例化
- 14.3 The C++ Instantiation Model /C++实例化模型
- 14.5 Explicit Instantiation /显式实例化
- 14.6 Compile-Time if Statement /编译时if语句
- 14.7 In the Standard Libaray /在标准库中
- 15.1 The Deduction Process /推断过程
- 15.2 Deduced Contexts /推断上下文
- 15.3 Special Deduction Situations /特殊推断情形
- 15.4 Initializer Lists /初始化列表
- 15.5 Parameter Packs /参数包
- 15.6 Rvalue References /右值引用
-
19.4 SFINAE-Based Traits /基于SFINAE的特性
-
19.6 Detecting Members /检查成员
-
19.7 Other Techniques /其他Trait技术
Code:
- 22.1 Function Objects,Pointers,and std::function<> /函数对象,指针和std::function<>
- 22.2 Generalized Function Pointers /广义函数指针
- 22.3 Bridge Interface /桥接口
- 22.4 Type Erasure /类型擦除
- 22.5 Optional Bridging /可选桥接
- 22.6 Performance Consideration /性能考虑
-
23.1 The State of Modern C++ Metaprogramming
由于本章偏于应用,仅提供代码