We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f39561 commit f1c1e06Copy full SHA for f1c1e06
book/en-us/02-usability.md
@@ -435,7 +435,7 @@ auto arr = new auto(10); // arr as int *
435
### decltype
436
437
The `decltype` keyword is used to solve the defect that the auto keyword
438
-can only type the variable. Its usage is very similar to `sizeof`:
+can only type the variable. Its usage is very similar to `typeof`:
439
440
441
```cpp
book/zh-cn/02-usability.md
@@ -369,7 +369,7 @@ auto arr = new auto(10); // arr 被推导为 int *
369
370
371
372
-`decltype` 关键字是为了解决 auto 关键字只能对变量进行类型推导的缺陷而出现的。它的用法和 `sizeof` 很相似:
+`decltype` 关键字是为了解决 auto 关键字只能对变量进行类型推导的缺陷而出现的。它的用法和 `typeof` 很相似:
373
374
375
decltype(表达式)
0 commit comments