# std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::stride

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

Returns the stride of the layout mapping map_ in rth dimension. Equivalent to return map_.stride(r);.

## Official Specification Summary (cppreference)

```cpp
constexpr index_type stride( rank_type r ) const; // (since C++23)
```

Returns the stride of the layout mapping `map_` in `r`th dimension. Equivalent to `return map_.stride(r);`.

### Parameters

- `r` - the index of the dimension

### Return value

The stride.

### Example

> Note: This section is incomplete Reason: no example

### See also

> Note: This section is incomplete

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