[libcxx-commits] [libcxx] [libc++] Implement P2077R3: Heterogeneous erasure overloads for associative containers (PR #174680)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 14 05:24:21 PDT 2026
================
@@ -1332,6 +1344,18 @@ public:
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 iterator erase(const_iterator __f, const_iterator __l) {
return __tree_.erase(__f.__i_, __l.__i_);
}
+
+# if _LIBCPP_STD_VER >= 23
+
+ template <class _Kp>
----------------
philnik777 wrote:
```suggestion
template <class _K2>
```
I think that's the conventional naming for these overloads.
https://github.com/llvm/llvm-project/pull/174680
More information about the libcxx-commits
mailing list