@scrawl, but the code first erases element, and then increment iterator to erased element.