std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::extent - cppreference.com
Namespaces
Variants

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

From cppreference.com
 
 
 
 
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);.

Parameters

r - The rank index to get the extent size of

Return value

The extent at the given rank index.

Example

See also