std::flat_multiset<Key,Compare,KeyContainer>::swap
From cppreference.com
< cpp | container | flat multiset
C++
Containers library
(C++17) | ||||
| Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(C++26) | ||||
(C++11) | ||||
| Associative | ||||
| Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Adaptors | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Views | ||||
(C++20) | ||||
(C++23) | ||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::flat_multiset
Exchanges the contents of the container adaptor with those of
| void swap( flat_multiset& other ) noexcept; |
(since C++23) | |
other. Effectively calls ranges::swap(compare, other.compare); ranges::swap(c, other.c);
Contents |
[edit] Parameters
| other | - | container adaptor to exchange the contents with |
[edit] Return value
(none)
[edit] Exceptions
(none)
[edit] Complexity
Same as underlying container (typically constant).
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| specializes the std::swap algorithm (function template) [edit] |