Open
Description
Actual Description
- File Path:
book/en-us/02-usability.md
- Original paragraph: 2.3
The `decltype` keyword is used to solve the defect that the auto keyword can only type the variable. Its usage is very similar to `typeof`:
typeof
is a common extension provided by many compilers, but is no yet standardized in C++. It is recently standardized in C (see WG14 N2927).
We should consider how to mention typeof
.
Expected Description
实际描述
- 文件路径:
book/en-us/02-usability.md
- 原文段落:2.3
`decltype` 关键字是为了解决 `auto` 关键字只能对变量进行类型推导的缺陷而出现的。它的用法和 `typeof` 很相似:
typeof
是许多编译器提供的常见扩展,但未在 C++ 标准化。它最近在 C 中被标准化(见 WG14 N2927)。
我们应考虑如何提及 typeof
。
预期描述
Metadata
Metadata
Assignees
Labels
No labels