Namespaces
Variants

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

From ja.cppreference.net
static constexpr rank_type rank ( ) noexcept ;
(C++23以降)

mdspanの次元数を返します。 return Extents :: rank ( ) と等価です。

目次

パラメータ

(なし)

戻り値

次元数。

例

関連項目

[static]
extentsの静的ランクを返す
(std::extents<IndexType,Extents...>のpublic staticメンバ関数)
mdspanの動的ランクを返す
(public staticメンバ関数)