<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RVO on Cheat Sheet</title><link>/tags/rvo/</link><description>Recent content in RVO on Cheat Sheet</description><generator>Hugo</generator><language>en</language><atom:link href="/tags/rvo/index.xml" rel="self" type="application/rss+xml"/><item><title>Copy Elision &amp; Move Semantics</title><link>/programming/cpp/copy-elision-and-move-semantics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/programming/cpp/copy-elision-and-move-semantics/</guid><description>&lt;h1 id="copy-elision--move-semantics"&gt;Copy Elision &amp;amp; Move Semantics&lt;a class="anchor" href="#copy-elision--move-semantics"&gt;#&lt;/a&gt;&lt;/h1&gt;

&lt;p&gt;This guide traces the full story of &lt;strong&gt;Copy Elision&lt;/strong&gt; and &lt;strong&gt;Move Semantics&lt;/strong&gt; in Modern C++ (C++11+): why Copy Elision alone could not solve every copy overhead, how Move Semantics fills that exact gap, practical rules of thumb (&lt;strong&gt;single-live-name intuition&lt;/strong&gt;, parameter/return API guidelines, and &lt;code&gt;std::move&lt;/code&gt; best practices), language mechanics (&lt;code&gt;T&amp;amp;&lt;/code&gt; -&amp;gt; &lt;code&gt;const T&amp;amp;&lt;/code&gt; -&amp;gt; &lt;code&gt;T&amp;amp;&amp;amp;&lt;/code&gt;, &lt;code&gt;std::move&lt;/code&gt; vs. &lt;code&gt;std::forward&lt;/code&gt;), implementing &lt;code&gt;noexcept&lt;/code&gt; move operations, and ref-qualified member functions (&lt;code&gt;&amp;amp;&lt;/code&gt; / &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;).&lt;/p&gt;</description></item></channel></rss>