title: Memory reallocation in vectors
body: <p>I'm new to C++ and want to avoid newbie performance pitfalls.</p>
  
  <p>Can <strong>erasing</strong> elements from a vector possibly cause a memory reallocation?</p>
  
  <p>I'm working on a function that will add elements to a vector, and possibly erase some elements in the same frame.</p>