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

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

πŸ’– NAME

std::swap(std::basic_spanstream) - std::swap(std::basic_spanstream)

okay so bestie πŸ’… this is the std::swap(s...spanstream)(3) page from the C++ Standard Libary manual, and we’re here for the std::swap glow-up for std::basic_spanstream. It’s giving β€œswap the stream state” main character energy, no cap.


✨ Synopsis

          Defined in header <spanstream>
          template< class CharT, class Traits >

          void swap( std::basic_spanstream<CharT, Traits>& lhs,    (since
       C++23)

                     std::basic_spanstream<CharT, Traits>& rhs );

Overloads the std::swap algorithm for std::basic_spanstream. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).


🫢 Parameters

  • lhs, rhs β€” streams whose state to swap

🌈 Return value

(none) β€” literally no return value, bestie πŸŽ€


πŸ’€ Exceptions

May throw implementation-defined exceptions.

bestie, that means the implementation gets to decide what it throws β€” don’t go assuming it’s always chill 😭

πŸŽ€ Example

This section is incomplete.

Reason: no example.


πŸ‘‘ See also

  • swap β€” swaps two basic_spanstream objects (C++23) (public member function)

πŸ¦‹ Category:

  • Todo no example

mwah πŸ’‹ that’s the whole page β€” source: http://cppreference.com, version/date: 2024.06.10. bye bestie 🫢✨

πŸ“¦ where this page comes from