2 ms·
I think if you insert an element during iteration, it is unpredictable whether said element will be visited during the iteration or not, so it is probably a bad
by im3w1l 12y ago
I think if you insert an element during iteration, it is unpredictable whether said element will be visited during the iteration or not, so it is probably a bad idea even if you wont have a resize.
- seabee 12y agoIt's a bad idea if you don't have a well-defined mode of operation; for example, you're fine if the hash table uses copy-on-write semantics.