mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
@@ -1002,7 +1002,7 @@ std::cout << new_enum::value3 << std::endl
|
||||
|
||||
2. 尝试用[折叠表达式](#折叠表达式)实现用于计算均值的函数,传入允许任意参数。
|
||||
|
||||
> 参考答案[见此](../exercises/2)。
|
||||
> 参考答案[见此](../../exercises/2)。
|
||||
|
||||
[返回目录](./toc.md) | [上一章](./01-intro.md) | [下一章 运行时强化](./03-runtime.md)
|
||||
|
||||
|
||||
36
book/zh-cn/appendix3.md
Normal file
36
book/zh-cn/appendix3.md
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: 附录 3:现代 C++ 特性索引
|
||||
type: book-zh-cn
|
||||
order: 13
|
||||
---
|
||||
|
||||
# 附录 3:现代 C++ 特性索引表
|
||||
|
||||
| 特性概述 | 首次出现章节 | 首次出现版本 |
|
||||
|:--------|:-----------|:----------|
|
||||
| 概念(Concept) | 第二章 | C++20 |
|
||||
| 模板参数推导 | | C++17 |
|
||||
| 非类型模板参数的 auto 推导 | | C++17 |
|
||||
| 折叠表达式 | | C++17 |
|
||||
| 花括号初始化列表的 auto 推导 | | C++17 |
|
||||
| constexpr lambda | | C++17 |
|
||||
| lambda 表达式的 this 值捕获 | | C++17 |
|
||||
| 内联变量 | | C++17 |
|
||||
| 嵌套 namespace | | C++17 |
|
||||
| 结构化绑定 | | C++17 |
|
||||
| 带初始值的 switch 语句 | | C++17 |
|
||||
| constexpr if | | C++17 |
|
||||
| UTF-8 字符字面量 | | C++17 |
|
||||
| 枚举的直接初始化列表 | | C++17 |
|
||||
| attributes | | C++17 |
|
||||
| `std::variant` | | C++17 |
|
||||
| `std::optional` | | C++17 |
|
||||
| `std::any` | | C++17 |
|
||||
| `std::string_view` | | C++17 |
|
||||
| `std::invoke` | | C++17 |
|
||||
| `std::apply` | | C++17 |
|
||||
| `std::filesystem` | | C++17 |
|
||||
| `std::byte` | | C++17 |
|
||||
| map 和 set 的拼接 | | C++17 |
|
||||
| 并行算法 | | C++17 |
|
||||
|
||||
Reference in New Issue
Block a user