Merge pull request #42 from cellspace/patch-1

修改示例中的错误
This commit is contained in:
kelthuzadx 2020-09-02 09:56:57 +08:00 committed by GitHub
commit 44971daf87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
我们将从一个简单的情况开始没有任何令人惊讶的情况。相比模板类型推导和auto类型推导decltype只是简单的返回名字或者表达式的类型
````cpp
const int x=0; //decltype(i)是const int
const int i=0; //decltype(i)是const int
bool f(const Widget& w); //decltype(w)是const Widget&
//decltype(f)是bool(const Widget&)