std::ranges::transform_view<V,F>::iterator<Const>::operator++,--,+=,-=
С сайта ru.cppreference.net
constexpr /*iterator*/& operator++();
|
(1) | (начиная с C++20) |
constexpr void operator++( int );
|
(2) | (начиная с C++20) |
constexpr /*iterator*/ operator++( int )
requires ranges::forward_range<Base>;
|
(3) | (начиная с C++20) |
constexpr /*iterator*/& operator--()
requires ranges::bidirectional_range<Base>;
|
(4) | (начиная с C++20) |
constexpr /*iterator*/ operator--( int )
requires ranges::bidirectional_range<Base>;
|
(5) | (начиная с C++20) |
constexpr /*iterator*/& operator+=( difference_type n )
requires ranges::random_access_range<Base>;
|
(6) | (начиная с C++20) |
constexpr /*iterator*/& operator-=( difference_type n )
requires ranges::random_access_range<Base>;
|
(7) | (начиная с C++20) |
Увеличивает или уменьшает итератор.
Пусть current_ будет базовым итератором.
1) Эквивалентно
++current_; return *this;2) Эквивалентно
++current_;3) Эквивалентно
auto tmp = *this; ++*this; return tmp;4) Эквивалентно
--current_; return *this;5) Эквивалентно
auto tmp = *this; --*this; return tmp;6) Эквивалентно
current_ += n; return *this;7) Эквивалентно
current_ -= n; return *this;Параметры
| n | - | позиция относительно текущего местоположения |
Возвращаемое значение
1,4,6,7)
*
this
3,5)
копия
*
this
созданная до изменения