Scroll to navigation

std::layout_stride(3) C++ Standard Libary std::layout_stride(3)

NAME

std::layout_stride - std::layout_stride

Synopsis

Defined in header <mdspan> struct layout_stride; (since C++23)

layout_stride is a LayoutMappingPolicy which provides a layout mapping where the strides are user-defined.

layout_stride is a TrivialType. (until C++26) layout_stride is TriviallyCopyable, and (since C++26) std::is_trivially_default_constructible_v<layout_stride> is true.


Nested class templates

mapping a layout mapping of layout_stride
(public member class template)

See also

layout_left column-major multidimensional array layout mapping policy; leftmost (C++23) extent has stride 1
(class) layout_left_padded column-major layout mapping policy with padding stride that can be (C++26) greater than or equal to the leftmost extent
(class template) layout_right row-major multidimensional array layout mapping policy; rightmost (C++23) extent has stride 1
(class) layout_right_padded row-major layout mapping policy with padding stride that can be (C++26) greater than or equal to the rightmost extent
(class template)

2026.11.10 http://cppreference.com