◐ Shell
clean mode source ↗

std::unordered_set::swap – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void swap( unordered_set& other );

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

Parameter

other -

Behälter, um die Inhalte mit auszutauschen

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.

Rückgabewert

(None)

Original:

(none)

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

Ausnahmen

Komplexität

Constant

Siehe auch

spezialisiert die std::swap Algorithmus

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.


(Funktions-Template) [edit]