Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::layout_stride::mapping<Extents>::strides

Returns an array of strides of the mapping. Equivalent to return strides_;.

NotebookLM
constexpr std::array<index_type, rank_> strides() const noexcept;
(since C++23)

Returns an array of strides of the mapping. Equivalent to return strides_;.

Parameters

(none)

Return value

Array of strides

Example

This section is incomplete
Reason: no example

See also

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.