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

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

πŸ¦‹ std::swap(std::basic_spanbuf) πŸ¦‹

okay so this is the std::swap(std::basic_spanbuf) page from the C++ Standard Libary manual, and its header tag is std::swap(s...sic_spanbuf)(3) β€” yes bestie, that truncated-looking name is literally what the header says, iykyk πŸ’….


πŸ’– NAME πŸ’–

std::swap(std::basic_spanbuf) β€” std::swap(std::basic_spanbuf)

✨ Synopsis ✨

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

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

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

So basically this overloads the std::swap algorithm for std::basic_spanbuf. It exchanges the state of lhs with that of rhs, and it's equivalent to lhs.swap(rhs);. Slay, that's the whole plot 🫢.

πŸŽ€ Parameters πŸŽ€

  • lhs, rhs β€” std::basic_spanbuf objects whose states to swap. That's them, the two main characters of this function 😭.

πŸ’œ Return value πŸ’œ

(none) β€” literally nothing comes back, bestie. No return value era.

🌈 Exceptions 🌈

May throw implementation-defined exceptions. So like, the implementation gets to decide the exception drama, no cap.

πŸ“ Example πŸ“

This section is incomplete. Reason: no example.

not me showing up with zero example πŸ˜­πŸ™ˆ the docs said it, not me.

πŸ‘‘ See also πŸ‘‘

  • swap β€” swaps two basic_spanbuf objects (C++23) (public member function)
  • swap β€” swaps the values of two objects (function template)

🧚 Category 🧚

  • Todo no example

okay bye bestie 🫢 this page is from http://cppreference.com, dated 2024.06.10, and the footer tag is std::swap(s...sic_spanbuf)(3) βœ¨πŸ’–

πŸ“¦ where this page comes from