std::flat_set::swap(3)

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

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

okay bestie, this is the std::flat_set::swap(3) page from the C++ Standard Libary manual. yes, that spelling, we're keeping it exactly πŸ’–.


🌸 NAME 🌸

std::flat_set::swap β€” std::flat_set::swap

✨ Synopsis ✨

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

Exchanges the contents of the container adaptor with those of other. Effectively it calls:

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

πŸŽ€ Parameters πŸŽ€

  • other β€” container adaptor to exchange the contents with

🫢 Return value 🫢

(none) β€” literally nothing, bestie πŸ’€

🧚 Exceptions 🧚

(none) β€” no throwing, no drama, periodt

πŸ¦‹ Complexity πŸ¦‹

Same as underlying container (typically constant). lowkey a slay ⭐

😭 Example 😭

This section is incomplete.

Reason: no example.

πŸ‘‘ See also πŸ‘‘

  • std::swap(std::flat_set) β€” specializes the std::swap algorithm. (C++23) (function template)

πŸ’€ Category πŸ’€

  • Todo no example

okay that's the whole page! footer vibes: source/version http://cppreference.com, date 2024.06.10, page std::flat_set::swap(3) β€” bye bestie, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from