mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
book: fix the wrong about delctype (#101)
This commit is contained in:
@@ -435,7 +435,7 @@ auto arr = new auto(10); // arr as int *
|
||||
### decltype
|
||||
|
||||
The `decltype` keyword is used to solve the defect that the auto keyword
|
||||
can only type the variable. Its usage is very similar to `sizeof`:
|
||||
can only type the variable. Its usage is very similar to `typeof`:
|
||||
|
||||
|
||||
```cpp
|
||||
|
||||
Reference in New Issue
Block a user