title: In C++, will the vector function push_back increase the size of an empty array?
body: <p>Quick question. Let's say I declare a vector of size 20. And then I want to add a few integers to it using push_back.</p>
  
  <pre><code>vector&lt;int&gt; myVector(20);
  myVector.push_back(5);
  myVector.push_back(14);
  </code></pre>
  
  <p>Is the capacity of my vector now 22, or is it still 20? Were 5 and 14 added to indices [19] and [20], respectively? Or are they at [0] and [1]?</p>