Spec-Zone.ru › C++

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

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

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

Parameters

(none)

Return value

The number of dimensions.

Example

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/mdspan/rank

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API