[libc++][mdspan] Fix layout_left::stride(r)
authorChristian Trott <crtrott@sandia.gov>
Fri, 4 Aug 2023 03:35:23 +0000 (21:35 -0600)
committerTobias Hieta <tobias@hieta.se>
Mon, 7 Aug 2023 07:04:26 +0000 (09:04 +0200)
commit219cef0881be0088c77e326eb4ab22d58bca28a5
tree660510e4a446e80df28452eb91e9118a8d0ff667
parent79d850a1d19bb298337d08de2187cc11fc75318c
[libc++][mdspan] Fix layout_left::stride(r)

It was using the stride calculation of layout_right.

Reviewed By: philnik

Differential Revision: https://reviews.llvm.org/D157065

(cherry picked from commit 0f4d7d81c9d08512a3871596fa2a14b737233c80)
libcxx/include/__mdspan/layout_left.h
libcxx/test/std/containers/views/mdspan/layout_left/stride.pass.cpp