std::flat_multiset::swap(3)

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

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

okay bestie, this is the std::flat_multiset::swap(3) page from the C++ Standard Libary manual β€” yes, β€œLibary,” that’s the manual’s spelling, not me having a moment πŸ’€. It’s giving very specific C++ energy, and we’re gonna get through it together 🫢.

πŸŽ€ NAME

std::flat_multiset::swap β€” std::flat_multiset::swap. That’s the name, bestie. It’s literally the swap function for std::flat_multiset. Periodt. πŸ’…

✨ Synopsis ✨

here’s the signature, exactly:

void swap( flat_multiset& other ) noexcept;  (since C++23)

It exchanges the contents of the container adaptor with those of other. Effectively calls:

ranges::swap(compare, other.compare);
ranges::swap(c, other.c);

🌸 Parameters

  • other β€” the container adaptor to exchange the contents with πŸ’–

🫢 Return value

(none) β€” nope, nothing comes back. iconic behavior honestly.

πŸ™ˆ Exceptions

(none) β€” no exceptions, bestie. we love a chill function.

🧚 Complexity

Same as underlying container (typically constant). lowkey elegant ✨

πŸ’€ Example

This section is incomplete Reason: no example

πŸ‘€ See also

  • std::swap(std::flat_multiset) β€” specializes the std::swap algorithm (C++23) (function template) πŸ”₯

πŸ—‚οΈ Category

  • Todo no example

okay that’s the whole page, bestie 🫢 source: http://cppreference.com; version/date: 2024.06.10; page: std::flat_multiset::swap(3). mwah πŸ’‹

πŸ“¦ where this page comes from