# std::layout_stride::mapping<Extents>::strides

> C++ Atlas: `cppatlas.com/w/cpp/container/mdspan/layout_stride/mapping/strides` | Source: https://en.cppreference.com/w/cpp/container/mdspan/layout_stride/mapping/strides | Domain: Containers | Standards: C++23

Returns an array of strides of the mapping. Equivalent to return strides_;.

## Official Specification Summary (cppreference)

```cpp
constexpr std::array<index_type, rank_> strides() const noexcept; // (since C++23)
```

Returns an array of strides of the mapping. Equivalent to `return strides_;`.

### Parameters

(none)

### Return value

Array of strides

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`stride`](https://en.cppreference.com/w/cpp/container/mdspan/layout_stride/mapping/stride): obtains the stride along the specified dimension (public member function)
- [`stride`](https://en.cppreference.com/w/cpp/container/mdspan/stride): obtains the stride along the specified dimension (public member function of `std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>`)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/mdspan/layout_stride/mapping/strides (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.