tmp/tmpatlacati/{from.md → to.md}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
##### `move_iterator` non-member functions <a id="move.iter.nonmember">[[move.iter.nonmember]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template <class Iterator1, class Iterator2>
|
| 5 |
-
auto operator-(
|
| 6 |
const move_iterator<Iterator1>& x,
|
| 7 |
const move_iterator<Iterator2>& y) -> decltype(x.base() - y.base());
|
| 8 |
```
|
| 9 |
|
| 10 |
*Returns:* `x.base() - y.base()`.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
template <class Iterator>
|
| 14 |
-
move_iterator<Iterator> operator+(
|
| 15 |
typename move_iterator<Iterator>::difference_type n, const move_iterator<Iterator>& x);
|
| 16 |
```
|
| 17 |
|
| 18 |
*Returns:* `x + n`.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
template <class Iterator>
|
| 22 |
-
move_iterator<Iterator> make_move_iterator(Iterator i);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Returns:* `move_iterator<Iterator>(i)`.
|
| 26 |
|
|
|
|
| 1 |
##### `move_iterator` non-member functions <a id="move.iter.nonmember">[[move.iter.nonmember]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template <class Iterator1, class Iterator2>
|
| 5 |
+
constexpr auto operator-(
|
| 6 |
const move_iterator<Iterator1>& x,
|
| 7 |
const move_iterator<Iterator2>& y) -> decltype(x.base() - y.base());
|
| 8 |
```
|
| 9 |
|
| 10 |
*Returns:* `x.base() - y.base()`.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
template <class Iterator>
|
| 14 |
+
constexpr move_iterator<Iterator> operator+(
|
| 15 |
typename move_iterator<Iterator>::difference_type n, const move_iterator<Iterator>& x);
|
| 16 |
```
|
| 17 |
|
| 18 |
*Returns:* `x + n`.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
template <class Iterator>
|
| 22 |
+
constexpr move_iterator<Iterator> make_move_iterator(Iterator i);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Returns:* `move_iterator<Iterator>(i)`.
|
| 26 |
|