<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64401>64401</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc++] std::layout_left computes strides wrong (as if it were std::layout_right)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
crtrott
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
crtrott
</td>
</tr>
</table>
<pre>
We made a copy paste error both in the class itself and in the test for the stride function.
i.e.
```c++
typename std::layout_left::template mapping<std::dextents<int, 2> map(std::dextents<int, 2>(5, 7));
```
reports strides of 7 and 1, not 1 and 5.
I will create a fix and submit it tomorrow.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUl2PnDAM_DXmxToUzMfCAw93t12pv6CPVQADqQJBiene_vsq7F5P11aqZAEzTKIZ2zoEM63MLZQvQNR78U4EiKA8J3qX2fn2QSadG27tN8ZFD4wae7fdcNNBGNl757FzMqNZUWbG3uoQ0EhgO6Jeh3deOAiOzh8giDcD47ivvRi3pqDOoJ7vT5PyJwyVulcP9BLrYOW28aqXeNUA-TPkz1bf3C7fLY9yJ4SXzWqJtrfNrBPkr7_FA78JrxIgfzWrAL0iQf4lKoHq_6iA6jJ-n4CaWPnLH0bv0PPmvIRH1oBuxNPRkCweXp1gdsDyU9qveDXWYu85Otc4mrdDFfZuMYJGUNzivHfXFJOhzYcmb3TCbVY1WaZOVdYkc1sUZcO6olNdN3190qXOS9YDUVkVTPqUmJYU5apWhVKqKpt00HmpOl1kioph6EooFC_a2NTan0vq_JSYEHZuq6JQWWJ1xzY8Nqfbp8fW-Daqn7p9ClAoa4KEj_NixB7LZk33Psny_M_xYe-WbRf-6N3Vu3VCoFoHNGPswpX937P3ZpoFqEl2b9tZZAvxN12ALpORee_S3i1Al2jq8XravPvBvQBdjoQB6HKE_BUAAP__9Nr4cw">