std::flat_multiset::swap(3)
π 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 thestd::swapalgorithm (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
- 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