std::basic_...tream::swap(3)

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

✨ 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 two basic_spanbuf objects
    • (C++23) (public member function of std::basic_spanbuf<CharT,Traits>)

πŸ“ 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