名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan
 
 
 
 
static constexpr rank_type rank() noexcept;
(C++23 起)

返回 mdspan 中的維度數。等價於 return Extents::rank()

目錄

[編輯] 引數

(無)

[編輯] 返回值

維度數。

[編輯] 示例

[編輯] 參閱

[靜態]
返回 extents 的靜態秩
(std::extents<IndexType,Extents...> 的公共靜態成員函式) [編輯]
返回 mdspan 的動態秩
(公共靜態成員函式) [編輯]