C++ Templates (Chinese Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 C++ 基本语法,想系统理解模板机制的开发者
- 需要阅读或维护 STL、Boost 等模板库源码的工程师
- 准备编写泛型库、希望减少编译期错误的 C++ 程序员
- 对模板元编程、表达式模板等编译期技术感兴趣的学习者
Not a good fit for
- 刚接触编程或尚未熟练使用 C++ 类的零基础读者
- 只想了解 C++11 之后新特性、不关心底层机制的读者
- 主要使用 Java、Python 等不支持模板的语言的开发者
Reading tips
- 先按第 1 部分顺序通读函数模板与类模板两章,并动手复现示例代码。
- 第 2 部分语言细节可当参考手册,遇到实际编译错误时按主题查阅。
- 阅读第 3、4 部分前先熟悉 STL 容器与迭代器,否则 trait 与策略类难以体会。
- 读完后对照第 2 版补读变参模板、类模板参数推导等现代特性章节。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Chapter 1: About This Book
- Part 1: Template Fundamentals: Chapter 2: Function Templates
- Chapter 3: Class Templates
- Chapter 4: Non-Type Template Parameters
- Chapter 5: Tricky Fundamentals
- Chapter 6: Templates in Practice
- Chapter 7: Template Terminology
- Part 2: Templates in Depth: Chapter 8: Template Fundamentals in Depth
- Chapter 9: Names in Templates
- Chapter 10: Instantiation
- Chapter 11: Template Argument Deduction
- Chapter 12: Specialization and Overloading
- Chapter 13: Future Directions
- Part 3: Templates and Design: Chapter 14: Polymorphism in Templates
- Chapter 15: Traits and Policy Classes
- Chapter 16: Templates and Inheritance
- Chapter 17: Metaprogramming
- Chapter 18: Expression Templates
- Part 4: Advanced Applications: Chapter 19: Type Classification
- Chapter 20: Smart Pointers
- Chapter 21: Tuples
- Chapter 22: Function Objects and Functors
- Appendix A: The One Definition Rule
- Appendix B: Overload Resolution
FAQ
这本书和《C++ Templates(第2版)中文版》有什么区别?
零基础可以直接读这本书吗?
书中的示例代码能直接编译运行吗?
读这本书之前需要先读《C++标准库》吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.