std::ranges::enumerate_view<V>::iterator<Const>::operator[]
constexpr auto operator[]( difference_type n ) const
requires ranges::random_access_range<Base>
| (начиная с C++23) |
Возвращает элемент в указанной относительной позиции. Эквивалентно: return reference-type(pos_ +n, current_[n]);.
Параметры
| n | - | позиция относительно текущего положения |
Возвращаемое значение
Элемент со смещением n относительно текущего положения.
Пример
См. также
|
(C++23) | обращается к элементу (открытая функция-член) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/enumerate_view/iterator/operator_at