std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>::swap - cppreference.com (original) (raw)

| void swap( flat_map& other ) noexcept; | | (since C++23) | | --------------------------------------- | | ------------- |

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

[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