title: Smart pointer in global scope
body: <p>I have this smart pointer in top of my cpp file (Global variable):</p>
  
  <pre><code>std::unique_ptr&lt;DATA_READ&gt; smartPT(new DATA_READ);
  </code></pre>
  
  <p>What happens if smart pointer declares in global scope? I know smart pointer in a function automatically deletes and release memory after the function ends but How about Global Scope Smart Pointer which used in multiple functions?</p>