std::map::swap
cppreference.com
[] |
Google. . , . , . |
<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 |
()
noexcept:
noexceptConstant
.
| std::swap ( ) |