Follow up work on #8852 and #9276 making View take mdspan-style template argument. This PR makes sure that subview propagates/preserves the arguments of the original view.
This will retain the index_type when calling subview with a View that uses mdspan style template args. It also will get some optimizations, our current subview doesn't get because this new version more directly aligns with submdspan.
The added test spells out the difference in return type explicitly between new and old style template arguments.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Network access is unavailable and git history contains
only the base revision, so do not spend time looking for upstream commits or
pull requests. Diagnose from the local source, make a production-code change,
and use the smallest relevant target in the existing build tree for local
verification.