std::move_iterator<Iter>::operator++,+,+=,--,-,-=
来自cppreference.com
| (1) | (C++17 起为 constexpr) |
|
| (2) | (C++17 起为 constexpr) |
|
| (3) | ||
(C++17 起为 constexpr) (C++20 前) |
||
| |
(C++20 起) | |
| (4) | (C++17 起为 constexpr) |
|
| (5) | (C++17 起为 constexpr) |
|
| (6) | (C++17 起为 constexpr) |
|
| (7) | (C++17 起为 constexpr) |
|
| (8) | (C++17 起为 constexpr) |
|
递增或递减底层迭代器。
1,3) 递增底层迭代器。
2,4) 递减底层迭代器。
5) 返回一个前进
n 个位置的迭代器。6) 返回一个前进
-n 个位置的迭代器。7) 将迭代器前进
n 个位置。8) 将迭代器前进
-n 个位置。参数
| n | - | 相对于当前位置的位置 |
返回值
1,2)
*this4) 在更改之前制作的
*this 的副本5)
move_iterator(base() + n);6)
move_iterator(base() - n);7,8)
*this示例
| 本节未完成 原因:暂无示例 |
参阅
(C++11) |
令迭代器前进 (函数模板) |
(C++11) |
计算两个迭代器适配器间的距离 (函数模板) |