The Wayback Machine - https://web.archive.org/web/20120612045052/http://en.cppreference.com/w/cpp/container/map/swap

std::map::swap

From cppreference.com
Jump to: navigation, search
void swap( map& other );

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

Contents

[edit] Parameters

other - container to exchange the contents with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] Complexity

Constant

[edit] See also

specializes the std::swap algorithm
(function template) [edit]
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages