std::basic_...f::operator=(3)

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

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the std::basic_...f::operator=(3) page from the C++ Standard Libary manual β€” yes, that manual name is literally spelled Libary here, iconic typo energy, we keep it. The star of the show is std::basic_spanbuf::operator= - std::basic_spanbuf::operator=.


🌸 Synopsis 🌸

The signatures, bestie β€” copy them exactly, no edits:

basic_spanbuf& operator=( basic_spanbuf&& rhs );          (1) (since C++23)
basic_spanbuf& operator( const basic_spanbuf& ) = delete; (2) (since C++23)
  • 1) Move assignment operator. Equivalent to auto tmp{std::move(rhs)}; this->swap(tmp); return *this;. After move assignment, *this holds the state rhs held before move assignment. It is implementation-defined whether rhs still hold the underlying buffer after move assignment.
  • 2) The copy assignment operator is deleted; basic_spanbuf is not CopyAssignable.

πŸ’– Parameters πŸ’–

  • rhs β€” another basic_spanbuf that will be moved from.

✨ Return value ✨

*this β€” that's the whole vibe, no cap.


😭 Exceptions 😭

May throw implementation-defined exceptions.


🧚 Example 🧚

This section is incomplete Reason: no example

πŸ”₯ See also πŸ”₯

  • constructor β€” constructs a basic_spanbuf object (C++23) (public member function)
  • swap β€” swaps two basic_spanbuf objects (C++23) (public member function)

πŸ’€ Category πŸ’€

  • Todo β€” no example

okay that's the whole page, bestie πŸ’– this lil manual page came from http://cppreference.com, dated 2024.06.10, under the std::basic_...f::operator=(3) title. slay.

πŸ“¦ where this page comes from