std::basic_...stream::swap(3)
πΈ std::basic_...stream::swap(3) πΈ
okay bestie, welcome to the C++ Standard Libary manual page for std::basic_...stream::swap(3). (Yes, the manual header says βLibaryβ β iconic spelling era, weβre keeping it.) This page is lowkey short and sweet:
β¨ NAME β¨
std::basic_spanstream::swap - std::basic_spanstream::swap
π Synopsis π
void swap( basic_spanstream& other ); (since C++23)
Exchanges the state of the stream with those of other.
This is done by calling
std::basic_iostream<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)
π Exceptions π
May throw implementation-defined exceptions.
bestie, thatβs the whole exception spec β implementation-defined, so donβt @ me with assumptions π
π§ 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 π
- Todo no example
Signed off with love by http://cppreference.com, version/date 2024.06.10, for std::basic_...stream::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