title: Erase function of the std::vector
body: <p>I have a <code>std::vector</code> and an iterator that points to an element in the vector. My question is how can I delete an element from the vector and keep the iterator?</p>
  
  <p>I've tried using a second iterator to find the specific element that I want to delete and after erasing it with the erase function, the first iterator becomes invalid.</p>