std::basic_...tream::swap(3)
π
std::basic_...tream::swap(3) π
okay so bestie, this is the C++ Standard Libary manual page for std::basic_ostringstream::swap, and it's giving βtiny but iconic stream-state exchangeβ energy. β¨
πΈ NAME πΈ
std::basic_ostringstream::swapβ literallystd::basic_ostringstream::swap, no cap. That's the whole name, bestie. π
π¦ Synopsis π¦
void swap( basic_ostringstream& other ); (since C++11)
It exchanges the state of the stream with those of other. This is done by calling basic_ostream<CharT, Traits>::swap(other) and rdbuf()->swap(*other.rdbuf()). Slay. π
π Parameters π
otherβ stream to exchange the state with. That's it. That's the parameter. π«Ά
π Return value π
(none) β like, nothing comes back. Zero. Nada. Periodt. π
π₯ Exceptions π₯
May throw implementation-defined exceptions. So yeah, it's not promising you a totally smooth ride, bestie β the implementation gets to decide. π
π Example π
This section is incomplete Reason: no example
no example bestie π the page literally says so.
π See also π
operator=β moves the string stream (C++11) (public member function)swapβ swaps twobasic_stringbufobjects (C++11) (public member function ofstd::basic_stringbuf<CharT,Traits,Allocator>)
π Category π
- Todo no example
mwah π β source: http://cppreference.com, date: 2024.06.10, page: std::basic_...tream::swap(3)
π¦ 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