◐ Shell
clean mode source ↗

std::unordered_map::swap — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void swap( unordered_map& other );

(depuis 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.

Paramètres

other -

Récipient pour échanger avec le contenu

Original:

container to exchange the contents with

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

(Aucun)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceptions

Complexité

Constant

Voir aussi

l'algorithme spécialisé std::swap

Original:

specializes the std::swap algorithm

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction générique) [edit]