[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
Wed Jun 17 22:22:27 PDT 2026


================
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++23
+
+// <map>
+
+// class map
+
+//    template<class K>
+//        node_type extract(K&& k) const;        // C++23
----------------
Zingam wrote:

Progress is being made on P3372R3

https://github.com/llvm/llvm-project/issues/127876

All tests should be made `constexpr` compatible:
Which means to use the pattern:

```
int main(...) {
  test();
  static_assert(test());
}
```

Currently just map was merged.

Please also update the synopsis above.

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


More information about the libcxx-commits mailing list