Namespaces
Variants
Views
Actions

std::flat_multiset<Key,Compare,KeyContainer>::swap

From cppreference.com
< cpp‎ | container‎ | flat multiset
Revision as of 00:13, 28 December 2023 by Space Mission (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
void swap( flat_multiset& other ) noexcept;
(since C++23)
Exchanges the contents of the container adaptor with those of 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

[edit] See also

specializes the std::swap algorithm
(function template) [edit]