[libcxx-commits] [libcxx] [libc++] Fix insert() calling incorrect constructors (PR #146231)

Richard Smith via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 15 06:16:41 PDT 2025


================
@@ -831,7 +831,7 @@ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
 template <class _InputIterator>
 inline void hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator __first, _InputIterator __last) {
   for (; __first != __last; ++__first)
-    __table_.__insert_multi(*__first);
+    __table_.__emplace_unique(*__first);
----------------
zygoloid wrote:

Likewise.

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


More information about the libcxx-commits mailing list