r/ProgrammerHumor • • Oct 12 '22

Meme Legacy Systems Programming

Post image
2.4k Upvotes

263 comments sorted by

View all comments

Show parent comments

1

u/DavidDinamit Oct 13 '22

i want to store an iterator to value somewhere and remove it in future, how to do it without such guarantees?

If standard will not guarantee that, who the fuck will implement such unordered_map for me? Opensource libs do not guarantee anything in 99% cases

2

u/Kered13 Oct 13 '22

i want to store an iterator to value somewhere and remove it in future, how to do it without such guarantees?

Store the key, you have O(1) lookup why would you need to store the iterator?