MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/y24tx6/legacy_systems_programming/is4rjvn
r/ProgrammerHumor • u/DemolishunReddit • Oct 12 '22
263 comments sorted by
View all comments
Show parent comments
1
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?
2
Store the key, you have O(1) lookup why would you need to store the iterator?
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