On this page
std::extents<IndexType,Extents...>::dynamic-index-inv
|
(since C++23) (exposition only*) |
Returns the number r
such that in range [
0,
r + 1)
there are exactly [
0,
i + 1)
dynamic extents. If i <= rank_dynamic()
is false, the behavior is undefined.
Parameters
i | - | the index |
Return value
The minimum value of r
such that dynamic-index(r + 1) == i + 1
is true.
Example
See also
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/extents/dynamic-index-inv