We should remove the pattern std::mdspan<...> const .... For views, the const here doesn't prevent people from modifying the underlying data, just the view itself, which isn't usually a useful restriction.
I'd suggest to modify our use cases to std::mdspan<const T> where possible. This would preserve the constness of elements and provide “read only” access
General
We should remove the pattern
std::mdspan<...> const ...
. For views, theconst
here doesn't prevent people from modifying the underlying data, just the view itself, which isn't usually a useful restriction.