◐ Shell
clean mode source ↗

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::rank_dynamic - cppreference.com

From cppreference.com

static constexpr rank_type rank_dynamic() noexcept;
(since C++23)

Returns the number of dynamic dimensions in a mdspan. Equivalent to return Extents::rank_dynamic().

Parameters

(none)

Return value

The number of dynamic dimensions.

Example

See also

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