std::swap(s...sic_syncbuf)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ 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_syncbuf objects 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 two basic_syncbuf objects (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