std::swap(s...sic_syncbuf)(3)
π NAME π
okay so welcome to the C++ Standard Libary manual, section 3 β yes, Libary is spelled exactly like that in the manual name, and we're folding it in right here instead of copy-pasting the header line. The header title is std::swap(s...sic_syncbuf)(3), and today's main character is std::swap(std::basic_syncbuf).
The NAME line is literally std::swap(std::basic_syncbuf) - std::swap(std::basic_syncbuf). No notes, just iconic behavior. π
β¨ Synopsis β¨
bestie, it's a template with CharT, Traits, and Allocator, and it's been a thing since C++20. Here's the signature, exactly as the page gives it:
template< class CharT, class Traits, class Allocator >
void swap( std::basic_syncbuf<CharT, Traits, Allocator>& lhs,
(since C++20)
std::basic_syncbuf<CharT, Traits, Allocator>& rhs );
It overloads the std::swap algorithm for std::basic_syncbuf. It exchanges the state of lhs with the state of rhs, and effectively calls lhs.swap(rhs). slay.
π§ Parameters π§
lhs,rhsβstd::basic_syncbufobjects whose states to swap. That's the whole parameter list, and it ate. π
π Return value π
(none)β no return value, literally nothing comes back. It's giving βmy job here is doneβ energy. π«Ά
π Example π
This section is incomplete Reason: no example
No example yet, bestie β the page is literally telling on itself. π
π See also π
swapβ swaps twobasic_syncbufobjects (public member function)swapβ swaps the values of two objects (function template)
π·οΈ Category:
* Todo no example
xoxo, bestie π this page is sourced from http://cppreference.com, dated 2024.06.10, and the footer title is std::swap(s...sic_syncbuf)(3). That's the whole vibe check, periodt. π«Ά
π¦ 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