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

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 10 08:13:36 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 {
----------------
Zingam wrote:

OK. AFAIK. Generally we don't want to generalize or add stuff that is not needed currently.

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


More information about the libcxx-commits mailing list