std::unordered_map::swap - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(desde C++11) | |
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.
Parâmetros
| other | - | recipiente para trocar os conteúdos com Original: container to exchange the contents with The text has been machine-translated via Google Translate. |
Valor de retorno
(Nenhum)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exceções
Complexidade
Constant
Veja também
o algoritmo especializado std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. (modelo de função) [edit] | |