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

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

🌸 NAME 🌸

okay so bestie, this is the std::swap(s...ringstream)(3) page from the C++ Standard Libary manual β€” yes, that's the manual name, keep up πŸ’…. It's giving main character energy for std::swap(std::basic_stringstream) - std::swap(std::basic_stringstream). Periodt. ✨

πŸ“œ Synopsis πŸ“œ

Defined in header <sstream> 🫢

          template< class CharT, class Traits, class Alloc >

          void swap( std::basic_stringstream<CharT,Traits,Alloc>& lhs,
       (since C++11)

                     std::basic_stringstream<CharT,Traits,Alloc>& rhs );

It overloads the std::swap algorithm for std::basic_stringstream. It exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Slay. πŸ”₯

πŸŽ€ Parameters πŸŽ€

  • lhs, rhs β€” streams whose state to swap. That's the whole assignment, bestie. 🫢

πŸ¦‹ Return value πŸ¦‹

(none) β€” lowkey nothing comes back, ngl. πŸ’€

🌈 Exceptions 🌈

May throw implementation-defined exceptions. So yeah, bestie, it's giving implementation gets to decide energy β€” no cap. 😭

πŸ“ Example πŸ“

This section is incomplete Reason: no example

bestie they really left us hanging on this one 😭

πŸ‘‘ See also πŸ‘‘

  • swap β€” swaps two string streams (C++11) (public member function). The way this one just does the thing πŸ’…

πŸ’… Category πŸ’…

  • Todo no example

That's the tea: source/version: http://cppreference.com; date: 2024.06.10; page: std::swap(s...ringstream)(3) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from