std::swap(s...ispanstream)(3)
πΈ NAME πΈ
okay so, bestie, welcome to the C++ Standard Library page for std::swap(std::basic_ispanstream) β yes, the one indexed as std::swap(s...ispanstream)(3). Itβs giving tiny overload, main character energy, and honestly? obsessed π
β¨
β¨ Synopsis β¨
Defined in header <spanstream>
template< class CharT, class Traits >
void swap( std::basic_ispanstream<CharT, Traits>& lhs, (since
C++23)
std::basic_ispanstream<CharT, Traits>& rhs );
The way this overloads the std::swap algorithm for std::basic_ispanstream is lowkey iconic π«Ά. It exchanges the state of lhs with that of rhs β no cap β and effectively calls lhs.swap(rhs). Periodt.
π Parameters π
lhs,rhsβ streams whose state to swap. Thatβs the duo, thatβs the vibe check, iykyk.
π Return value π
(none)β literally no return value, fr fr π.
β οΈ Exceptions β οΈ
May throw implementation-defined exceptions. Highkey keep that in mind β it is not giving βnever throwsβ energy π.
π§ͺ Example π§ͺ
This section is incomplete.
Reason: no example π.
π See also π
swapβ swaps twobasic_ispanstreamobjects (C++23) (public member function).
ποΈ Category ποΈ
Todo no example
Cute lil sign-off: source is http://cppreference.com, dated 2024.06.10, and the page is std::swap(s...ispanstream)(3) π. Bye bestie, go swap responsibly β¨.
π¦ 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