std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>::swap
From cppreference.com
void swap( flat_map& other ) noexcept; |
(since C++23) | |
other
. Effectively calls ranges::swap(compare, other.compare); ranges::swap(c.keys, other.c.keys); ranges::swap(c.values, other.c.values);
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
(C++23) |
specializes the std::swap algorithm (function template) |