W3cubDocs

/C++

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

constexpr const extents_type& extents() const noexcept;
(since C++23)

Returns a const reference to the extents of the layout mapping map_. Equivalent to return map_.extents();.

Parameters

(none).

Return value

A const reference to the extents.

Example

See also

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