table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::move_iterator::operator=(3) | C++ Standard Libary | std::move_iterator::operator=(3) |
NAME¶
std::move_iterator::operator= - std::move_iterator::operator=
Synopsis¶
template< class U > (constexpr since C++17) move_iterator& operator=( const move_iterator<U>& other );
Assigns other.current to current .
If U is not convertible to Iter, the program is ill-formed. (until C++20) This overload participates in overload resolution only if std::is_same_v<U, Iter> is false and both std::convertible_to<const U&, Iter> and (since C++20) std::assignable_from<Iter&, const U&> are modeled.
Parameters¶
other - iterator adaptor to assign
Return value¶
*this
Example¶
This section is incomplete
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¶
constructor constructs a new iterator adaptor (C++11) (public member function)
| 2026.11.10 | http://cppreference.com |