Namespaces
Variants
Views
Actions

std::submdspan_mapping_result

From cppreference.com
< cpp‎ | container‎ | mdspan
Revision as of 10:20, 3 June 2024 by Ljestrada (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
Defined in header <mdspan>
template< class LayoutMapping >
struct submdspan_mapping_result;
(since C++26)

Specializations of submdspan_mapping_result are result types returned by overloads of submdspan_mapping.

This class template has no base classes or declared members other than those shown below.

[edit] Template parameters

LayoutMapping - a layout mapping type that meets the requirements of LayoutMapping

[edit] Data members

Member name Definition
mapping
calculated mapping of type LayoutMapping. It is declared with [[no_unique_address]] attribute.
(public member object)
offset
calculated offset of type std::size_t.
(public member object)

All these members have default member initializers where each data member is value initialized.

[edit] See also

(C++26)
returns a view of a subset of an existing mdspan
(function template) [edit]
calculates the mapping and data handle offset used for subdmspan
(public member function of std::layout_left::mapping<Extents>) [edit]
calculates the mapping and data handle offset used for subdmspan
(public member function of std::layout_right::mapping<Extents>) [edit]
calculates the mapping and data handle offset used for subdmspan
(public member function of std::layout_stride::mapping<Extents>) [edit]