std::basic_...tream::swap(3)
β¨ NAME β¨
std::basic_ospanstream::swap β std::basic_ospanstream::swap
Okay bestie, welcome to the std::basic_...tream::swap(3) page from the C++ Standard Libary manpage (section 3, and yes, βLibaryβ is literally how itβs spelled up top β weβre keeping it π
). This is the swap member for std::basic_ospanstream, and the NAME section is out here being iconic and repetitive: std::basic_ospanstream::swap β std::basic_ospanstream::swap. Short. Sweet. C++23-coded. Periodt.
πΈ Synopsis πΈ
void swap( basic_ospanstream& other ); (since C++23)
Exchanges the state of the stream with those of other.
This is done by calling std::basic_ostream<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 no return value, bestie. Itβs giving void energy.
π§ Exceptions π§
May throw implementation-defined exceptions.
π¦ Example π¦
This section is incomplete.
Reason: no example.
Not me finding a βthis section is incompleteβ on a manpage π Itβs giving βwe left room for your imagination.β No example is provided here. Thatβs the whole tea.
π See also π
swapβ swaps twobasic_spanbufobjects- (C++23) (public member function of
std::basic_spanbuf<CharT,Traits>)
- (C++23) (public member function of
π Category π
- Todo no example
Source/version: http://cppreference.com Β· date: 2024.06.10 Β· and thatβs the page, bestie β mwah, ily, bye! πβ¨
π¦ 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