std::flat_map::swap(3)
πΈ NAME πΈ
Okay bestie, this is the std::flat_map::swap(3) page from the C++ Standard Libary manual. The NAME line is exactly std::flat_map::swap - std::flat_map::swap β yes, itβs giving βmy name is my nameβ energy. ππ
β¨ Synopsis β¨
Hereβs the signature, copied character-for-character because we do not mess with code in this house:
void swap( flat_map& other ) noexcept; (since C++23)
It exchanges the contents of the container adaptor with those of other. Thatβs the whole job. π
Effectively calls:
ranges::swap(compare, other.compare);
ranges::swap(c.keys, other.c.keys);
ranges::swap(c.values, other.c.values);
π¦ Parameters π¦
otherβ container adaptor to exchange the contents with π«Ά
π Return value π
(none) β the page literally says no return value. Clean, minimal, iconic. β¨
π Exceptions π
(none) β no exceptions listed. No notes. π
π Complexity π
Same as underlying container (typically constant). Thatβs the complexity tea. β
π Example π
The Example section is literally:
This section is incomplete Reason: no example
Not me waiting for an example like ποΈπποΈπ.
π See also π
std::swap(std::flat_map)β specializes thestd::swapalgorithm (C++23) (function template) π
π·οΈ Category π·οΈ
* Todo no exampleπ·οΈ
kisses bestie π this page came from http://cppreference.com, dated 2024.06.10, and itβs the std::flat_map::swap(3) manual page. bye slay πβ¨
π¦ 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