[libcxx-commits] [libcxx] 84ed575 - [libc++] Add missing constant_wrapper in the std module (#202038)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 18 06:51:05 PDT 2026
Author: Hui
Date: 2026-06-18T09:51:00-04:00
New Revision: 84ed575d755d3994397b7c2b591f22d01bef314a
URL: https://github.com/llvm/llvm-project/commit/84ed575d755d3994397b7c2b591f22d01bef314a
DIFF: https://github.com/llvm/llvm-project/commit/84ed575d755d3994397b7c2b591f22d01bef314a.diff
LOG: [libc++] Add missing constant_wrapper in the std module (#202038)
The std module declaration of `constant_wrapper` was missed in #191695.
Added:
Modified:
libcxx/modules/std/utility.inc
Removed:
################################################################################
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!=;
More information about the libcxx-commits
mailing list