std::basic_...m::operator=(3)
π NAME π
Hey bestie! This is the std::basic_...m::operator=(3) page, living in the C++ Standard Libary manual β and yes, that βLibaryβ spelling is staying exactly as-is, we donβt touch the lore π
β¨.
The NAME section is literally serving the same name twice, with a lil dash:
std::basic_ostringstream::operator= -
std::basic_ostringstream::operator=
β¨ Synopsis β¨
This is the move-assignment operator signature, no cap:
basic_ostringstream& operator=( basic_ostringstream&& other );
(since C++11)
So basically, it move-assigns the string stream other into *this, and that means it effectively move-assigns both the std::basic_ostream base class and the associated std::basic_stringbuf. The way that works is the moment.
Big note, bestie: the base class move assignment swaps all stream state variables between *this and other β every one of them except for rdbuf. That part is important, okay? π
π¦ Parameters π¦
otherβ the string stream to move from
π Return value π
*this β thatβs it, thatβs the return. Periodt. π
πΈ Example πΈ
This section is incomplete Reason: no example
(Yeah, the example is giving unfinished homework, but weβre reporting it exactly as the page does. π)
π See also π
swapβ swaps two string streams,(C++11), public member functionoperator=β assigns abasic_stringbufobject,(C++11), public member function ofstd::basic_stringbuf<CharT,Traits,Allocator>operator=β move-assigns from anotherbasic_ostream,(C++11), protected member function
π Category π
* Todo no example
Okay thatβs the whole vibe! Footer sign-off time, bestie: this came from http://cppreference.com, version/date 2024.06.10, and the footer title is std::basic_...m::operator=(3). Stay iconic, and may your streams always move correctly π«Άπ
π¦ 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