Use the result of erase() when removing iterators from containers.