Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: