std::swap(s...sic_spanbuf)(3)
π¦ 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_spanbufobjects 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 twobasic_spanbufobjects (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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms