std::ranges::adjacent_transform_view<V,F,N>::iterator<Const>::operator++,--,+=,-=
来自cppreference.com
| |
(1) | (C++23 起) |
| |
(2) | (C++23 起) |
| |
(3) | (C++23 起) |
| |
(4) | (C++23 起) |
| |
(5) | (C++23 起) |
| |
(6) | (C++23 起) |
递增或递减迭代器。
令 inner_ 为底层迭代器并且 Base 为仅用于阐述的成员类型,
等价于:
1)
++inner_; return *this;2)
auto tmp = *this; ++*this; return tmp;3)
--inner_; return *this;4)
auto tmp = *this; --*this; return tmp;5)
inner_ += n; return *this;6)
inner_ -= n; return *this;参数
| n | - | 相对于当前位置的偏移量 |
返回值
1,3,5,6)
*this2,4)
*this 被修改前的副本示例
| 本节未完成 原因:暂无示例 |