[libcxx-commits] [libcxx] [libc++][mdspan] P3383R3: mdspan.at() (PR #175213)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 10 14:01:32 PST 2026


================
@@ -335,4 +335,80 @@ class always_convertible_layout::mapping {
   index_type offset_{};
   index_type scaling_{};
 };
+
+struct SpyIndex {
+  int val;
+  constexpr SpyIndex(int v) : val(v) {}
+  constexpr operator int() const noexcept { return val; }
+};
+
+class strict_cast_layout {
----------------
eiytoq wrote:

I'll move these definitions into` at.pass.cpp` for now to keep the header clean, and I'll promote it back to the header only when the LWG3974 tests actually need it in a future PR.

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


More information about the libcxx-commits mailing list