[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/container/map/swap [Back]  [Original]

std::map::swap cppreference.com
cppreference.com

std::map::swap

cppreference.com

<metanoindex/>

<tbody> </tbody>
void swap( map& other );

Exchanges the contents of the container with those of other. All iterators and references remain valid.

The behavior is undefined if get_allocator() != other.get_allocator() and std::allocator_traits<allocator_type>::propagate_on_container_swap::value != true.

other
:
container to exchange the contents with
Google.
. .

()

noexcept:  
noexcept
  

Constant

.

std::swap
( ) []

Web Proxy Viewer  |  New URL  |  Original Page