Code Monkey home page Code Monkey logo

cpp-templates-2ed's Introduction

《C++ Templates》目前有两版,第一版于2002年11月22日出版,并于2004年出版中文版。C++11与C++98相比堪称脱胎换骨,模板技术自然也顺应时代变得更为易用,但同时也增加了掌握的负担。为了顺应模板在C++11/14/17中的变化,第二版于2017年9月25日出版,暂时没有中文版,此为个人阅读英文版的笔记。书中代码见《C++ Templates 2ed》官方源码

相关链接

part1:基础

  1. 函数模板(Function Template)
  2. 类模板(Class Template)
  3. 非类型模板参数(Nontype Template Parameter)
  4. 可变参数模板(Variadic Template)
  5. Tricky Basic
  6. 移动语义与enable_if
  7. 按值传递与按引用传递(By Value or by Reference?)
  8. 编译期编程(Compile-Time Programming)
  9. 模板实战(Using Templates in Practice)
  10. 泛型库(Generic Library)

part2:深入模板

  1. 深入模板基础(Fundamentals in Depth)
  2. 模板中的名称(Names in Template)
  3. 实例化(Instantiation)
  4. 模板实参推断(Template Argument Deduction)
  5. 特化与重载(Specialization and Overloading)

part3:模板与设计

  1. Traits的实现(Implementing Traits)
  2. 基于类型属性的重载(Overloading on Type Property)
  3. 模板与继承(Template and Inheritance)
  4. 桥接静态多态与动态多态(Bridging Static and Dynamic Polymorphism)
  5. 元编程(Metaprogramming)
  6. Typelist
  7. Tuple
  8. 标签联合(Discriminated Union)
  9. 表达式模板(Expression Template)
  10. 模板的调试(Debugging Template)

part1:基础

  1. 函数模板
  2. 类模板
  3. 非类型模板参数
  4. 可变参数模板
  5. Tricky Basic
  6. 移动语义与enable_if
  7. 按值传递与按引用传递
  8. 编译期编程
  9. 模板实战
  10. 模板术语
  11. 泛型库

part2:深入模板

  1. 深入模板基础
  2. 模板中的名称
  3. 实例化
  4. 模板实参推断
  5. 特化与重载
  6. 未来的方向

part3: 模板与设计

  1. 模板的多态威力
  2. Traits的实现
  3. 基于类型属性的重载
  4. 模板与继承
  5. 桥接静态多态与动态多态
  6. 元编程
  7. Typelist
  8. Tuple
  9. 标签联合
  10. 表达式模板
  11. 模板的调试

附录

  1. 一处定义原则
  2. 值类别
  3. 重载解析
  4. 标准类型实用程序
  5. Concepts

cpp-templates-2ed's People

Contributors

downdemo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.