31 Oct, 2009, Kaz wrote in the 21st comment:
Votes: 0
Hmm. Right you are. It does invalidate the iterator, however.
01 Nov, 2009, David Haley wrote in the 22nd comment:
Votes: 0
Yes, you are quite right that you don't want to modify the container as you are iterating over it. In this case, we don't even have to remove things from the container, because the container is about to be destroyed anyhow.
20.0/22