template< class U > move_iterator& operator=( const move_iterator<U>& other ); |
(constexpr since C++17) | |
Assigns other. to currentcurrent .
|
If |
(until C++20) |
|
This overload participates in overload resolution only if |
(since C++20) |
Parameters
| other | - | iterator adaptor to assign |
Return value
*this
Example
Reason: no 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 | the converting assignment operator was not constrained | constrained |
See also
| (C++11) |
constructs a new iterator adaptor (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.