in reply to Re: Design thoughts: iterator invalidation
in thread Design thoughts: iterator invalidation
Personally, I don't think I'd trust the iterator after changing the hash, but I'd probably hope that it would iterate until there are zero keys in the hash that it has not yet returned.
There are two problems with that statement:
Ditto: noticing that a new key had been added at a point preceding the current position of the iterator.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Design thoughts: iterator invalidation
by SuicideJunkie (Vicar) on Feb 24, 2015 at 17:49 UTC |