std::extents<IndexType,Extents...>::dynamic-index-inv
private:
template< class OtherIndexType >
static constexpr auto /*dynamic-index-inv*/( rank_type i ) noexcept;
| (since C++23) (exposition only*) |
Возвращает число r такое, что в диапазоне [0, r + 1) ровно [0, i + 1) динамических размеров. Если i <= rank_dynamic() равно false, поведение не определено.
Параметры
| i | - | индекс |
Возвращаемое значение
Минимальное значение r такое, что dynamic-index(r + 1) == i + 1 равно true.
Пример
См. также
© 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