[libcxx-commits] [libcxx] [libc++][mdspan][NFC] Remove redundant syntax and keywords (PR #175024)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 8 11:20:16 PST 2026


================
@@ -310,7 +309,7 @@ mdspan(_ElementType*, const _MappingType&)
     -> mdspan<_ElementType, typename _MappingType::extents_type, typename _MappingType::layout_type>;
 
 template <class _MappingType, class _AccessorType>
-mdspan(const typename _AccessorType::data_handle_type, const _MappingType&, const _AccessorType&)
+mdspan(typename _AccessorType::data_handle_type, const _MappingType&, const _AccessorType&)
----------------
H-G-Hristov wrote:

```suggestion
mdspan(const typename _AccessorType::data_handle_type, const _MappingType&, const _AccessorType&)
```

Per https://wg21.link/mdspan.mdspan#overview-1 `const` should remain.

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


More information about the libcxx-commits mailing list