std::move_s...l::operator=(3)
π NAME π
okay bestie, this page comes from the C++ Standard Libary manual (yes, that's the manual name, typo and all β we don't fix it π
). The entry is std::move_sentinel::operator= β and the name line is also std::move_sentinel::operator=. iconic.
β¨ Synopsis β¨
here's the whole signature vibe, no cap:
template< class S2 >
requires std::assignable_from<S&, const S2&>
(since C++20)
constexpr move_sentinel& operator=( const
std::move_sentinel<S2>& other );
so what actually happens? The underlying sentinel gets assigned the value of the underlying sentinel of other, i.e. other.base(). that's the whole plot π«Ά.
π Parameters π
otherβ sentinel adaptor to assign. that's it bestie.
π Return value π
*this β periodt.
π¦ Example π¦
This section is incomplete.
Reason: no example.
π See also π
operator=β assigns another iterator adaptor(C++11)(public member function of std::move_iterator<Iter>).
π Category π
- Todo no example.
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::move_s...l::operator=(3) β bye bestie, go slay those sentinels πβ¨
π¦ 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