Scroll to navigation

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

NAME

std::layout_left - std::layout_left

Synopsis

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

layout_left is a LayoutMappingPolicy which provides a layout mapping where the leftmost extent has stride 1, and strides increase left-to-right as the product of extents.

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


Nested class templates

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

See also

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_stride a layout mapping policy with user-defined strides (C++23) (class)

2026.11.10 http://cppreference.com