[libcxx-commits] [libcxx] Reapply "[libc++] Optimize __hash_table::erase(iterator, iterator)" (PR #162850)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 15 07:19:17 PDT 2025


================
@@ -47,6 +47,18 @@ int main(int, char**) {
     assert(c.size() == 0);
     assert(k == c.end());
   }
+  {
+    std::unordered_multiset<size_t> map;
----------------
ldionne wrote:

There's an assumption that the hash for integers is the identity. We should actually pass such a hash explicitly to make the test more portable.

https://github.com/llvm/llvm-project/pull/162850


More information about the libcxx-commits mailing list