名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan
 
 
 
 
static constexpr std::size_t static_extent( rank_type r ) noexcept;
(C++23 起)

在等級索引 r 處靜態確定 mdspan 的範圍。如果等級索引 r 對應於動態範圍,則返回 std::dynamic_extent。等同於 return Extents::static_extent(r);

目錄

[編輯] 引數

r - 要獲取靜態範圍大小的等級索引

[編輯] 返回值

靜態範圍大小,或 std::dynamic_extent

[編輯] 示例

[編輯] 參閱

返回特定等級索引處 extents 的靜態範圍大小
(std::extents<IndexType,Extents...> 的公共靜態成員函式) [編輯]
返回給定等級索引處 mdspan 的範圍
(公共成員函式) [編輯]