std::layout_right
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Containers library
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
Tables
std::mdspan
(C++26)
(C++26)
(C++26)
(C++26)
layout_right
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
Defined in header
<mdspan>
struct layout_right;
(since C++23)
layout_right
is a LayoutMappingPolicy which provides a layout mapping where the rightmost extent has stride 1, and strides increase right-to-left as the product of extents.
layout_right
is a TrivialType.
layout_right
is TriviallyCopyable, and std::is_trivially_default_constructible_v <layout_right> is true.
It is the default layout mapping policy used by std::mdspan if no user-specified layout is provided.
[edit] Nested class templates
[edit] See also
(C++26)
(class template) [edit]
(C++23)
1
(class) [edit]