Spec-Zone.ru › C++

std::layout_right::mapping<Extents>::stride

constexpr index_type stride(rank_type i) const noexcept;
(since C++23)

Returns the stride of the mapping at a rank index i. Equivalent to return extents().rev-prod-of-extents(i);.

This overload participates in overload resolution only if extents_type​::​rank() > 0 is true.

The behavior is undefined if i >= extents_type::rank() is true.

Parameters

i - a rank index in the range [0, extents_type::rank())

Return value

The stride at a specified rank index.

Example

See also

stride
obtains the stride along the specified dimension
(public member function of std::layout_stride::mapping<Extents>)
stride
obtains the stride along the specified dimension
(public member function of std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/mdspan/layout_right/mapping/stride

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API