|
From: <au...@gm...> - 2006-06-19 21:10:47
|
Hi, > what happens if, when a running for_each, you need to change the > iterators that you originally passed, from within the function that > you call? > > specifically, what if the list changes size? If you add or remove elements from the list, all iterators become invalid. Of course you can try using them and you might succeed, but shouldn't do that. Just think that after any insertion or removal all iterator don't work anymore. -- Aurimas |