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 c239ef1 commit 6a3d8d7Copy full SHA for 6a3d8d7
book/zh-cn/03-runtime.md
@@ -550,7 +550,7 @@ constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type&& __t) noexcep
550
可见 `std::forward` 的原理在于巧妙的利用了模板类型推导中产生的差异。
551
552
这时我们能回答这样一个问题:为什么在使用循环语句的过程中,`auto&&` 是最安全的方式?
553
-因为当 `auto` 被推到为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。
+因为当 `auto` 被推导为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。
554
555
## 总结
556
0 commit comments