std::extents<IndexType,Extents...>::rank - cppreference.com (original) (raw)

| static constexpr rank_type rank() const noexcept; | | (since C++23) | | -------------------------------------------------- | | ------------- |

Returns the number of dimensions in extents.

[edit] Parameters

(none)

[edit] Return value

The number of dimensions.

[edit] Example

[edit] See also

| | returns the dynamic rank of an extents (public static member function) [edit] | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | obtains the number of dimensions of an array type (class template) [edit] |