title: Will I get a memory leak if I set an existing vector = vector<int>(num)?
body: <p>What happens if I do the following in C++:</p>
  
  <pre><code>vector&lt;int&gt; vect;
  vect = vector&lt;int&gt;(8);
  vect = vector&lt;int&gt;(3);
  </code></pre>
  
  <p>Will the eight integers allocated in the second line be deleted in the last line, or will they remain allocated but lost? (i.e. memory leak)</p>