title: How is vector implemented in C++
body: <p>I am thinking of how I can implement <code>std::vector</code> from the ground up.</p>
  
  <p>How does it resize the vector?  </p>
  
  <p><code>realloc</code> only seems to work for plain old stucts, or am I wrong?</p>