# std::layout_left

> C++ Atlas: `cppatlas.com/w/cpp/container/mdspan/layout_left` | Source: https://en.cppreference.com/w/cpp/container/mdspan/layout_left | Domain: Containers | Standards: C++23, C++26

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.

## Official Specification Summary (cppreference)

```cpp
// 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 `std::is_trivially_default_constructible_v<layout_left>` is `true`. (since C++26)

### Nested class templates

- `mapping`: a layout mapping of `layout_left` (public member class template)

### See also

- [`layout_left_padded`](https://en.cppreference.com/w/cpp/container/mdspan/layout_left_padded) (C++26): column-major layout mapping policy with padding stride that can be greater than or equal to the leftmost extent (class template)
- [`layout_right`](https://en.cppreference.com/w/cpp/container/mdspan/layout_right) (C++23): row-major multidimensional array layout mapping policy; rightmost extent has stride `1` (class)
- [`layout_stride`](https://en.cppreference.com/w/cpp/container/mdspan/layout_stride) (C++23): a layout mapping policy with user-defined strides (class)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/mdspan/layout_left (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.