std::move_iterator<Iter>::move_iterator - cppreference.com
From cppreference.com
|
(1) | (constexpr since C++17) |
|
(2) | (constexpr since C++17) |
|
(3) | (constexpr since C++17) |
Constructs a new move_iterator.
| Overload | current
|
|---|---|
| (1) | value-initialized |
| (2) | initialized with x(until C++20)std::move(x)(since C++20)
|
| (3) | initialized with other.current
|
3) The converting constructor.
|
If |
(until C++20) |
|
This overload participates in overload resolution only if |
(since C++20) |
Parameters
| x | - | iterator to adapt |
| other | - | iterator adaptor to copy |
Example
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3435 | C++20 | overload (3) was not constrained | constrained |