Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | container‎ | mdspan
Revision as of 09:42, 18 October 2024 by D41D8CD98F (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
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

Parameters

r - The rank index to get the extent size of

Return value

The extent at the given rank index.

Example

See also

returns dynamic extent size of an extents at a certain rank index
(public member function of std::extents<IndexType,Extents...>) [edit]
returns the static extent size of a mdspan at a given rank index
(public static member function) [edit]