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

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

🌸 NAME 🌸

okay so welcome to std::basic_...tream::swap(3) from the C++ Standard Libary manual, bestie πŸ’…. The NAME is std::basic_ispanstream::swap - std::basic_ispanstream::swap β€” yes, it's giving "say it twice so it sticks" energy ✨.

✨ Synopsis ✨

void swap( basic_ispanstream& other );  (since C++23)

This one exchanges the state of the stream with those of other πŸ”„. The way it does that is by calling std::basic_istream<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 nothing comes back, bestie πŸ’€.

😱 Exceptions 😱

It may throw implementation-defined exceptions 😭. That's the whole caveat, no cap.

πŸ§ͺ 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 πŸ—‚οΈ

  • Category: * Todo no example

that's the whole page, bestie 🌈. peace out and stay iconic πŸ’œ β€” source/version: http://cppreference.com, dated 2024.06.10.

πŸ“¦ where this page comes from