Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

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

NotebookLM
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

This section is incomplete
Reason: no example

See also

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.