Namespaces
Variants
Actions

std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::swap

From cppreference.com
 
C++
 
Containers library
 
std::flat_multimap
void swap( flat_multimap& 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.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

[edit] See also

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant