std::swap(s...sic_filebuf)(3)
π std::swap(std::basic_filebuf) π
okay bestie, this one is fresh from the C++ Standard Libary manual, section (3), and the main character is the std::swap overload for std::basic_filebuf. We're gonna get you all caught up, no cap. β¨
π NAME π
std::swap(std::basic_filebuf) - std::swap(std::basic_filebuf)
yeah, the name and the description are literally the same thing. Minimal, iconic, we respect it. π
π¦ Synopsis π¦
template< class CharT, class Traits >
void swap( std::basic_filebuf<CharT,Traits>& lhs, (since C++11)
std::basic_filebuf<CharT,Traits>& rhs );
so this overloads the std::swap algorithm for std::basic_filebuf. It exchanges the state of lhs with that of rhs, and effectively calls lhs.swap(rhs). That's the whole tea. π«β¨
π Parameters π
lhs,rhsβstd::basic_filebufobjects whose states to swap. That's it, that's the parameter list bestie. π
πΈ Return value πΈ
(none) β no return value, literally nothing comes back. It's giving "I did the swap and left", periodt. π
π Example π
This section is incomplete.
Reason: no example.
so yeah, no example here bestie. We're just gonna have to imagine the swap energy πβ¨
π See also π
swapβ swaps twobasic_filebufobjects. (C++11) (public member function)swapβ swaps the values of two objects. (function template)
π Category π
Todo no example
and that's the page, bestie. slay π
xoxo, your fave Unix girly β source/version: http://cppreference.com, date: 2024.06.10, page: std::swap(s...sic_filebuf)(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