std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>:: extent
From cppreference.com
C++
Containers library
Sequence | ||||
(C++11)
|
||||
(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
|
|
constexpr
index_type extent
(
rank_type r
)
const
noexcept
;
|
(since C++23) | |
Returns the extent of a
mdspan
at the rank index
r
. Equivalent to
return
extents
(
)
.
extent
(
r
)
;
.
Parameters
r | - | The rank index to get the extent size of |
Return value
The extent at the given rank index.
Example
This section is incomplete
Reason: no example |
See also
returns dynamic extent size of an
extents
at a certain rank index
(public member function of
std::extents<IndexType,Extents...>
)
|
|
[static]
|
returns the static extent size of a
mdspan
at a given rank index
(public static member function) |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/container/mdspan/extent&oldid=177206
"