mirror of
https://github.com/CnTransGroup/EffectiveModernCppChinese.git
synced 2025-01-27 04:10:30 +08:00
Update item24.md
Co-authored-by: Yi Yang <qingfeng.yy@alibaba-inc.com>
This commit is contained in:
parent
51e4b8f898
commit
c0a98fd5e3
@ -29,7 +29,7 @@ template<typename T>
|
||||
void f(T&& param); //param是一个通用引用
|
||||
```
|
||||
|
||||
第二种情况是`auto`声明符,包含从以上示例中取得的这个例子:
|
||||
第二种情况是`auto`声明符,它是从以上示例中拿出的:
|
||||
|
||||
```cpp
|
||||
auto&& val2 = var1; //var2是一个通用引用
|
||||
|
Loading…
Reference in New Issue
Block a user