std::move_s...l::operator=(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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