std::ranges::concat_view<Views...>::iterator<Const>::operator[]
constexpr decltype(auto) operator[]( difference_type pos ) const
requires /*concat-is-random-access*/<Const, Views...>;
| (начиная с C++26) |
Возвращает ссылку на элемент в указанной относительной позиции.
Параметры
| pos | - | позиция относительно текущего положения |
Возвращаемое значение
*((*this) + pos)
Пример
См. также
|
(C++26) | обращается к элементу (открытая функция-член) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/concat_view/iterator/operator_at