[libcxx-commits] [libcxx] [llvm] [libc++] Implement P1885R12: `<text_encoding>` (PR #141312)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 3 20:58:36 PDT 2026


================
@@ -0,0 +1,67 @@
+//===----------------------------------------------------------------------===//
+//
+// 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++26
+
+// UNSUPPORTED: no-localization
+
+// <text_encoding>
+
+#include <functional>
----------------
frederick-vs-ja wrote:

I don't think we need this. Including `<text_encoding>` should be sufficient for obtaining `std::hash`.
If we find that such removal breaks Clang module builds, we should fix `module.modulemap.in‎` by adding `export std.functional.hash` to the `text_encoding` module (see also #169634 and #170674).

```suggestion
```

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


More information about the libcxx-commits mailing list