std::basic_...f::operator=(3)
π 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,*thisholds the staterhsheld before move assignment. It is implementation-defined whetherrhsstill hold the underlying buffer after move assignment. - 2) The copy assignment operator is deleted;
basic_spanbufis notCopyAssignable.
π Parameters π
rhsβ anotherbasic_spanbufthat 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 abasic_spanbufobject (C++23) (public member function)swapβ swaps twobasic_spanbufobjects (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
- 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