Scroll to navigation

std::mdspan::static_extent(3) C++ Standard Libary std::mdspan::static_extent(3)

NAME

std::mdspan::static_extent - std::mdspan::static_extent

Synopsis

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);.

Parameters

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

Return value

The static extent size, or std::dynamic_extent.

Example


This section is incomplete
Reason: no example

See also

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

2026.11.10 http://cppreference.com