W3cubDocs

/C++

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping

constexpr const mapping_type& mapping() const noexcept;
(since C++23)

Returns the layout mapping. Equivalent to return map_;.

Parameters

(none).

Return value

A const reference to the underlying layout mapping object of mapping_type.

Example

See also

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/mapping