Difference between revisions of "cpp/container/mdspan/extent"
From cppreference.com
D41D8CD98F (Talk | contribs) (+) |
D41D8CD98F (Talk | contribs) (fix) |
||
Line 7: | Line 7: | ||
{{dcl end}} | {{dcl end}} | ||
− | Returns the extent of a {{tt|mdspan}} at the rank index {{c|r}}. Equivalent to {{c|return | + | Returns the extent of a {{tt|mdspan}} at the rank index {{c|r}}. Equivalent to {{c|return extents().extent(r);}}. |
===Parameters=== | ===Parameters=== |
Latest revision as of 04:42, 21 October 2024
constexpr index_type extent( rank_type r ) const noexcept; |
(since C++23) | |
Returns the extent of a mdspan
at the rank index r. Equivalent to return extents().extent(r);.
Contents |
[edit] Parameters
r | - | The rank index to get the extent size of |
[edit] Return value
The extent at the given rank index.
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
returns dynamic extent size of an extents at a certain rank index (public member function of std::extents<IndexType,Extents...> )
| |
[static] |
returns the static extent size of a mdspan at a given rank index (public static member function) |