[libcxx-commits] [libcxx] [libc++] Add missing constant_wrapper in the std domule (PR #202038)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jun 6 05:58:52 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Hui (huixie90)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/202038.diff


1 Files Affected:

- (modified) libcxx/modules/std/utility.inc (+6) 


``````````diff
diff --git a/libcxx/modules/std/utility.inc b/libcxx/modules/std/utility.inc
index 77c21b87640dd..adefda68ee5eb 100644
--- a/libcxx/modules/std/utility.inc
+++ b/libcxx/modules/std/utility.inc
@@ -89,6 +89,12 @@ export namespace std {
   using std::in_place_index;
   using std::in_place_index_t;
 
+#if _LIBCPP_STD_VER >= 26
+  // [const.wrap.class], constant_wrapper
+  using std::constant_wrapper;
+  using std::cw;
+#endif // _LIBCPP_STD_VER >= 26
+
   // [depr.relops]
   namespace rel_ops {
     using rel_ops::operator!=;

``````````

</details>


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


More information about the libcxx-commits mailing list