[libcxx-commits] [libcxx] [libc++] Implement P2077R3: Heterogeneous erasure overloads for associative containers (PR #174680)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 11 07:05:05 PST 2026


================
@@ -882,10 +882,10 @@ public:
   template <class _Table>
   _LIBCPP_HIDE_FROM_ABI void __node_handle_merge_multi(_Table& __source);
 
+  template <class _NodeHandle, class _Key>
+  _LIBCPP_HIDE_FROM_ABI _NodeHandle __node_handle_extract(const _Key& __key);
   template <class _NodeHandle>
-  _LIBCPP_HIDE_FROM_ABI _NodeHandle __node_handle_extract(key_type const& __key);
-  template <class _NodeHandle>
-  _LIBCPP_HIDE_FROM_ABI _NodeHandle __node_handle_extract(const_iterator __it);
+  _LIBCPP_HIDE_FROM_ABI _NodeHandle __node_handle_extract_iterator(const_iterator __it);
----------------
H-G-Hristov wrote:

This name makes me feel like this function extracts the iterator and not something else. Can you think of something more accurate?

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


More information about the libcxx-commits mailing list