std::basic_streambuf::swap(3)

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

πŸ’… std::basic_streambuf::swap(3)

okay so this is from the C++ Standard Libary manual, bestie β€” the page is literally <pink>std::basic_streambuf::swap</pink>, and it's here to explain the swap vibe. no cap πŸ’…

✨ NAME ✨

std::basic_streambuf::swap - std::basic_streambuf::swap. that's the name, that's the page, iconic self-title energy πŸŽ€

πŸŒ€ Synopsis

void swap( basic_streambuf& other );  (since C++11)

so swap exchanges the contents of the stream buffer with those of other 🫢. yes bestie, that's the whole move β€” it's giving "trade places" but for stream buffers.

πŸŽ€ Parameters

  • other β€” stream buffer to exchange contents with

πŸ’– Return value

(none) β€” literally nothing comes back, it just does the swap πŸ’«

😭 Exceptions

May throw implementation-defined exceptions. yep, that's the exact caveat, don't come for me πŸ™ˆ

🧚 Example

This section is incomplete Reason: no example

not me staring at an empty example section 😭 it's incomplete and the reason is literally no example.

πŸ—‚οΈ Category

  • Todo no example

β€” source/version: http://cppreference.com; date: 2024.06.10; page: std::basic_streambuf::swap(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from