std::move_i...r::operator=(3)
πΈ NAME πΈ
std::move_iterator::operator= - std::move_iterator::operator=
okay so bestie, welcome to the C++ Standard Libary manual page std::move_i...r::operator=(3) π
this one is literally the assignment operator for std::move_iterator, and yes the name repeats because thatβs how the page is set up. no cap.
β¨ SYNOPSIS β¨
template< class U >
(until C++17)
move_iterator& operator=( const move_iterator<U>& other );
template< class U >
(since C++17)
constexpr move_iterator& operator=( const move_iterator<U>& other );
The underlying iterator is assigned the value of the underlying iterator of other, i.e. other.base(). π«Ά
β οΈ UB warning: The behavior is undefined ifUis not convertible toIter. like, thatβs undefined behavior, bestie π
(until C++20) This overload participates in overload resolution only if U is not the same type as Iter and 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 β thatβs the return, bestie. π
π¦ EXAMPLE π¦
This section is incomplete. Reason: no example. π no example yet, but the page says it, not me.
π₯ DEFECT REPORTS π₯
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. π
- DR:
LWG 3435β Applied to: C++20 β Behavior as published: the converting assignment operator was not constrained β Correct behavior: constrained.
π SEE ALSO π
constructorβ constructs a new iterator adaptor (C++11) (public member function).
π CATEGORY π
Category: * Todo no example
mwah π thatβs the whole page, bestie. source: http://cppreference.com, version/date: 2024.06.10, page: std::move_i...r::operator=(3). π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms