[ Web Proxy ]
URL:
Viewing: https://en.cppreference.com/cpp/container/mdspan/stride [Back]  [Original]

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::stride - cppreference.com
cppreference.com
Namespaces
Variants

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

From cppreference.com
 
 
 
 
constexpr index_type stride( rank_type r ) const;
(since C++23)

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

Parameters

r - the index of the dimension

Return value

The stride.

Example

See also


Web Proxy Viewer  |  New URL  |  Original Page