◐ Shell
clean mode source ↗

std::array::swap – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void swap( array& other );

(seit C++11)

Exchanges the contents of the container with those of other. Does not cause iterators and references to associate with the other container.

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

noexcept

specification:  (seit C++11)

<tbody> </tbody>

noexcept(noexcept(std::swap(declval<T&>(), declval<T&>())))

Komplexität

Linear in size of the container.

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]