Closed Oipo closed 4 years ago
Same thing happens with insert, but not with erase.
robin_hood doesn't offer the same iterator stability guarantees as std::unordered_map. Insert, emplace and erase invalidate all iterators as well references and pointers to keys or data.
Oh, right, thanks.
As can be seen on https://godbolt.org/z/AHH2G3 there's a bug that invalidates existing iterators.