title: Erasing multiple objects from a std::vector?
body: <p>Here is my issue, lets say I have a std::vector with ints in it.</p>
  
  <p>let's say it has 50,90,40,90,80,60,80.</p>
  
  <p>I know I need to remove the second, fifth and third elements. I don't necessarily always know the order of elements to remove, nor how many. The issue is by erasing an element, this changes the index of the other elements. Therefore, how could I erase these and compensate for the index change. (sorting then linearly erasing with an offset is not an option)</p>
  
  <p>Thanks</p>