std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::stride
constexpr index_type stride( rank_type r ) const; | (с C++23) |
Возвращает шаг мапирования расположения map_ в r-й размерности. Эквивалентно return map_.stride(r);.
Параметры
| r | - | индекс размерности |
Возвращаемое значение
Шаг.
Пример
См. также
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/stride