std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>:: static_extent
From cppreference.net
C++
Containers library
|
(C++17)
|
||||
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::mdspan
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
static
constexpr
std::
size_t
static_extent
(
rank_type r
)
noexcept
;
|
(C++23 起) | |
静态确定
mdspan
在秩索引
r
处的维度范围。若秩索引
r
对应动态维度,则返回
std::dynamic_extent
。等价于
return
Extents
::
static_extent
(
r
)
;
。
目录 |
参数
| r | - | 要获取静态范围大小的秩索引 |
返回值
静态扩展大小,或 std::dynamic_extent 。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
[static]
|
返回指定秩索引处
extents
的静态维度大小
(
std::extents<IndexType,Extents...>
的公开静态成员函数)
|
返回指定秩索引处
mdspan
的维度大小
(公开成员函数) |