| constexpr index_type required_span_size() const noexcept; |
(since C++23) | |
Returns the required size of the mapping.
Let s be equal to:
-
1, ifextents().rank() == 0istrue, - otherwise,
0, if the size of the multidimensional index spaceextents()is0, - otherwise,
1plus the sum of products ofextents().extent(r) - 1andextents_type::for allindex-cast(strides_[r])rin the range[0,extents().rank()).
A call is equivalent to return s;.
Return value
The required size of the mapping.
Example
This section is incomplete
Reason: no example
Reason: no example
See also
| returns the required size of the mapping (public member function of std::layout_left::mapping<Extents>) | |
| returns the required size of the mapping (public member function of std::layout_right::mapping<Extents>) | |
| returns the size of the multidimensional index space (public member function of std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.