downdemo / Cpp Templates 2ed
Licence: apache-2.0
📚 C++ Templates 2ed 笔记:C++11/14/17 模板技术
Stars: ✭ 392
C++ Templates 目前有两版,第一版于 2002 年 11 月 22 日出版,并于 2004 年出版中文版。C++11 与 C++98 相比堪称脱胎换骨,模板技术自然也顺应时代变得更为易用,但同时也增加了掌握的负担。为了顺应模板在 C++11/14/17 中的变化,第二版于 2017 年 9 月 25 日出版,暂时没有中文版,此为个人阅读英文版的笔记。
相关链接
- GitHub Pages:https://downdemo.github.io/Cpp-Templates-2ed/
- GitBook 在线阅读:https://downdemo.gitbook.io/cpp-templates-2ed/
- 书籍示例源码:http://www.tmplbook.com/code/code.html
part1:基础
- 函数模板(Function Template)
- 类模板(Class Template)
- 非类型模板参数(Nontype Template Parameter)
- 可变参数模板(Variadic Template)
- Tricky Basic
- 移动语义与 enable_if
- 按值传递与按引用传递(By Value or by Reference?)
- 编译期编程(Compile-Time Programming)
- 模板实战(Using Templates in Practice)
- 泛型库(Generic Library)
part2:深入模板
- 深入模板基础(Fundamentals in Depth)
- 模板中的名称(Names in Template)
- 实例化(Instantiation)
- 模板实参推断(Template Argument Deduction)
- 特化与重载(Specialization and Overloading)
part3:模板与设计
- Traits 的实现(Implementing Traits)
- 基于类型属性的重载(Overloading on Type Property)
- 模板与继承(Template and Inheritance)
- 桥接静态多态与动态多态(Bridging Static and Dynamic Polymorphism)
- 元编程(Metaprogramming)
- Typelist
- Tuple
- 标签联合(Discriminated Union)
- 表达式模板(Expression Template)
- 模板的调试(Debugging Template)
原书目录
part1:基础
part2:深入模板
part3: 模板与设计
附录
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].