std::basic_...tream::swap(3)
πΈ NAME πΈ
okay so welcome to std::basic_...tream::swap(3) from the C++ Standard Libary manual, bestie π
. The NAME is std::basic_ispanstream::swap - std::basic_ispanstream::swap β yes, it's giving "say it twice so it sticks" energy β¨.
β¨ Synopsis β¨
void swap( basic_ispanstream& other ); (since C++23)
This one exchanges the state of the stream with those of other π. The way it does that is by calling std::basic_istream<CharT, Traits>::swap(other) and swapping the wrapped std::basic_spanbuf objects (accessible through *rdbuf()) π«Ά.
π Parameters π
otherβ stream to exchange the state with.
π« Return value π«
(none) β literally nothing comes back, bestie π.
π± Exceptions π±
It may throw implementation-defined exceptions π. That's the whole caveat, no cap.
π§ͺ Example π§ͺ
This section is incomplete Reason: no example
π See also π
swapβ swaps twobasic_spanbufobjects;(C++23)public member function ofstd::basic_spanbuf<CharT,Traits>.
ποΈ Category ποΈ
- Category:
* Todo no example
that's the whole page, bestie π. peace out and stay iconic π β source/version: http://cppreference.com, dated 2024.06.10.
π¦ 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