std::flat_multimap::swap(3)
π¦ std::flat_multimap::swap(3) π¦
π NAME π
std::flat_multimap::swap - std::flat_multimap::swap β yes bestie, that's literally the name, and this page is chilling in the C++ Standard Libary manual. No cap π
β¨ Synopsis β¨
void swap( flat_multimap& other ) noexcept; (since C++23)
Okay so what does it do? It exchanges the contents of the container adaptor with those of other. Simple, iconic, done. π
It effectively calls:
ranges::swap(compare, other.compare);
ranges::swap(c.keys, other.c.keys);
ranges::swap(c.values, other.c.values);
πΈ Parameters πΈ
otherβ the container adaptor to exchange the contents with. That's the one, bestie π«Ά
π Return value π
(none) β literally nothing comes back. It's giving void energy π
π Exceptions π
(none) β no exceptions here, we stay unbothered π
π₯ Complexity π₯
Same as underlying container (typically constant). So usually constant β slay β
π¦ Example π¦
This section is incomplete Reason: no example
Not me finding an incomplete example section π β but that's exactly what it says.
π See also π
std::swap(std::flat_multimap)β specializes thestd::swapalgorithm (C++23) (function template)
π§ Category π§
- Todo no example
Byeee bestie π β source: http://cppreference.com, version/date: 2024.06.10, page: std::flat_multimap::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