Namespaces
Variants
Actions

std::layout_stride::mapping<Extents>::stride

From cppreference.com
< cpp‎ | container‎ | mdspan‎ | layout stride‎ | mapping
 
 
 
std::mdspan
 
 
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 strides_[i];

[edit] Parameters

i - a rank index in the range [0rank_)

[edit] Return value

The stride at a specified rank index.

[edit] Example

This section is incomplete
Reason: no example

[edit] See also

obtains the array of strides
(public member function) [edit]
obtains the stride along the specified dimension
(public member function of std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/mdspan/layout_stride/mapping/stride&oldid=178736"

AltStyle によって変換されたページ (->オリジナル) /