title: C++: Replace object in std::vector 'in place' with a new object of same type but keep references to this object
body: <p>is it possible to replace an object in a <code>std::vector</code> with another object of same type and maintain any references to this object which was just replaced?</p>
  <p>Let's say we have a</p>
  <p><code>std::vector&lt;MyObj&gt; objs</code></p>
  <p>and I want to replace an <code>MyObj</code>-object such that all references to this <code>MyObj</code> are still intact - is this possible?</p>