Scroll to navigation

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

NAME

std::mdspan::rank_dynamic - std::mdspan::rank_dynamic

Synopsis

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

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

2026.11.10 http://cppreference.com