[libcxx-commits] [libcxx] [libcxx] Implement `std::constant_wrapper` (PR #191695)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 17 11:06:15 PDT 2026


================
@@ -0,0 +1,37 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+
+// constant_wrapper
+
+// template<class T, size_t Extent>
+//   cw-fixed-value(T (&)[Extent]) -> cw-fixed-value<T[Extent]>;                   // exposition only
+
+#include <cassert>
----------------
ldionne wrote:

I think you can clean up a lot of includes in this file. Might be worth doing a quick pass over the other tests as well -- this is something that a LLM could easily help with.

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


More information about the libcxx-commits mailing list