I\'m making a game and I have a vector of bullets flying around. When the bullet is finished, I do bullets.erase(bullets.begin() + i); Then the bullet disappears. However it doe
I suggest you to take a look at these two idioms and pick the one that fits you the most: Shrink to fit Clear & minimize