title: Unreference shared_ptr
body: <p>I know 2 ways:</p>
  
  <pre><code>// Declared somewhere but not on stack
  shared_ptr&lt;X&gt; xptr = make_shared&lt;X&gt;();
  
  xptr = nullptr;  //#1
  xptr.reset();  //#2
  </code></pre>
  
  <p>As for me <em>#1</em> looks better, but what is better from the point of <code>C++</code></p>