Why does the 32769th insert fail in std::unordered_set?
问题 I generate a large number of class instances and store them in a std::unordered_set . I have defined a hash function and an equality relation, and so far everything works as it should - I insert 10000 instances with unordered_set::insert , and I can find them with unordered_set::find . All the objects are undamaged, and there is no hint on memory corruption or any other issue. However, when I keep inserting, the 32769th insert fails - it doesn't throw, but it returns a pair where the iterator