span style="color: #236fa1;">         // from the tree.</span></em><br />         <strong>delete</strong> root;<br />         root = <strong>nullptr</strong>;<br />      }<br />      <strong>else if</strong> (root-&gt;right == <strong>nullptr</strong>)<br />      {<br /><em><span style="color: #236fa1;">         // Here, we have a single child: a left child. It might seem a bit jarring</span></em><br /><em><span style="color: #236fa1;">         // not to check above whether root-&gt;left != nullptr, but we 