[libcxx-commits] [libcxx] [libc++][mdspan] P3383R3: mdspan.at() (PR #175213)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 9 21:26:10 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 {
----------------
H-G-Hristov wrote:
Nit: Are these definitions reused somewhere else? Maybe move them to `at.pass.cpp`?
https://github.com/llvm/llvm-project/pull/175213
More information about the libcxx-commits
mailing list