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

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

🌸 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 two basic_spanbuf objects (C++23) (public member function of std::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