<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rule of Five on Cheat Sheet</title><link>/tags/rule-of-five/</link><description>Recent content in Rule of Five on Cheat Sheet</description><generator>Hugo</generator><language>en</language><atom:link href="/tags/rule-of-five/index.xml" rel="self" type="application/rss+xml"/><item><title>Copy Control</title><link>/programming/cpp/primer/copy-control/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/programming/cpp/primer/copy-control/</guid><description>&lt;h1 id="copy-control"&gt;Copy Control&lt;a class="anchor" href="#copy-control"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Summary based on &lt;em&gt;C++ Primer, 5th ed.&lt;/em&gt; Chapter 13: Copy Control, covering the five special member functions that govern object initialization, assignment, movement, and destruction, along with essential control keywords. For a dedicated deep dive into Move Semantics, &lt;code&gt;T&amp;amp;&amp;amp;&lt;/code&gt;, &lt;code&gt;std::move&lt;/code&gt;, and move constructor/assignment implementation, see &lt;a href="../../programming/cpp/copy-elision-and-move-semantics/"&gt;Copy Elision &amp;amp; Move Semantics&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="1-the-five-copy-control-special-member-functions"&gt;1. The Five Copy-Control Special Member Functions&lt;a class="anchor" href="#1-the-five-copy-control-special-member-functions"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In C++, &lt;strong&gt;five special member functions&lt;/strong&gt; govern an object&amp;rsquo;s lifecycle and resource copying/moving across three lifecycle stages:&lt;/p&gt;</description></item></channel></rss>