std::layout_right::mapping
From cppreference.com
 
 
 < cpp | container | mdspan | layout right 
 
 
 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)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
std::layout_right::mapping
Defined in header 
 
 
<mdspan> 
 template< class Extents >
class layout_right::mapping;
 
 (since C++23) 
class layout_right::mapping;
The class template layout_right::mapping controls how multidimensional indices are mapped in a row-major manner to a one-dimensional value representing the offset. The mapping has stride 1 at rightmost extent and strides increase right-to-left as the products of extents.
Every specialization of mapping is a LayoutMapping and a TriviallyCopyable type which satisfies regular.
The program is ill-formed if the size of the multidimensional index space Extents() is not representable as a value of type Extents::index_type when Extents::rank_dynamic() is 0.
Contents
[edit] Template parameters
 Extents
 -
 specifies number of dimensions, their sizes, and which are known at compile time. Must be a specialization of 
std::extents.
[edit] Member types
 Member name
 Definition
extents_type
 Extents
index_type
 extents_type::index_type
size_type
 extents_type::size_type
rank_type
 extents_type::rank_type
layout_type
 std::layout_right
[edit] Data members
 Member
 Definition
extents_type extents_ (private)
 the extents object(exposition-only member object*)
[edit] Member functions
Observers
[static]
(public static member function) [edit]
[static]
(public static member function) [edit]
[static]
(public static member function) [edit]
[static]
(public static member function) [edit]
[edit] Non-member functions
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example