title: Efficiency when populating a vector
body: <p>Which would be more efficient, and why?</p>
  
  <pre><code>vector&lt;int&gt; numbers;
  
  for (int i = 0; i &lt; 10; ++i)
      numbers.push_back(1);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>vector&lt;int&gt; numbers(10,0);
  
  for (int i = 0; i &lt; 10; ++i)
      numbers[i] = 1;
  </code></pre>
  
  <p>Thanks</p>