Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | container‎ | mdspan
 
C++
 
Containers library
 
std::mdspan
static constexpr std::size_t static_extent( rank_type r ) noexcept;
(since C++23)

Statically determines the extent of a mdspan at the rank index r. If the rank index r corresponds to a dynamic extent, returns std::dynamic_extent. Equivalent to return Extents::static_extent(r);.

Contents

[edit] Parameters

r - The rank index to get the static extent size of

[edit] Return value

The static extent size, or std::dynamic_extent.

[edit] Example

[edit] See also

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant