Skip to content

Commit

Permalink
deploy: 25a0569
Browse files Browse the repository at this point in the history
  • Loading branch information
y1yang0 committed Jan 2, 2024
1 parent 52fd161 commit 37e327e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 5.RRefMovSemPerfForw/item28.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h2 id="条款二十八理解引用折叠"><a class="header" href="#条款二十
<pre><code class="language-cpp">Widget widgetFactory(); //返回右值的函数
Widget w; //一个变量(左值)
func(w); //用左值调用func;T被推导为Widget&amp;
func(widgetFactory()); //用又值调用func;T被推导为Widget
func(widgetFactory()); //用右值调用func;T被推导为Widget
</code></pre>
<p>在auto的写法中,规则是类似的。声明</p>
<pre><code class="language-cpp">auto&amp;&amp; w1 = w;
Expand Down
2 changes: 1 addition & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -4146,7 +4146,7 @@ <h3 id="折中"><a class="header" href="#折中">折中</a></h3>
<pre><code class="language-cpp">Widget widgetFactory(); //返回右值的函数
Widget w; //一个变量(左值)
func(w); //用左值调用func;T被推导为Widget&amp;
func(widgetFactory()); //用又值调用func;T被推导为Widget
func(widgetFactory()); //用右值调用func;T被推导为Widget
</code></pre>
<p>在auto的写法中,规则是类似的。声明</p>
<pre><code class="language-cpp">auto&amp;&amp; w1 = w;
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 37e327e

Please sign in to comment.