std::basic_...::operator=(3)
πΈ NAME πΈ
std::basic_stringstream::operator= β std::basic_stringstream::operator=
Okay bestie, welcome to std::basic_...::operator=(3) from the C++ Standard Libary β yes, thatβs the manual-name vibe, and weβre moving right along π
β¨
β¨ Synopsis β¨
basic_stringstream& operator=( basic_stringstream&& other ); (since C++11)
So this is the move-assignment girlie for std::basic_stringstream, and she has main character energy since C++11 π«Ά
Move assigns the string stream other to *this, effectively move-assigning both the std::basic_iostream base class and the associated std::basic_stringbuf.
Note that the base class move assignment swaps all stream state variables (except rdbuf) between *this and other. Yes, swaps β that part is literally the tea βπ
π«Ά Parameters π«Ά
otherβ string stream to move from π¦
π Return value π
*this β thatβs it, thatβs the whole return value, periodt π
π Example π
This section is incomplete.
Reason: no example.
Not me showing up to the example section and itβs just vibes and a TODO ππ Itβs giving βthe example is on vacation,β fr fr.
π See also π
swapβ swaps two string streams.(C++11)(public member function)β¨operator=β assigns abasic_stringbufobject.(C++11)(public member function of std::basic_stringbuf<CharT,Traits,Allocator>)πoperator=β move-assigns anotherbasic_iostream.(C++11)(protected member function)π₯
π Category π
Category: Todo β no example π
Source/version and date, cutely sign-off style: this page came from http://cppreference.com, dated 2024.06.10. Byeee, bestie β go move-assign something iconic π¦π
π¦ 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