◐ Shell
clean mode source ↗

std::swap(std::array) - cppreference.com

De cppreference.com

<metanoindex/>

Ciclo de predefinições detetado: Predefinição:include page

<tbody> </tbody>

template< > void swap( array<> &lhs, array<> &rhs );

(desde C++11)

Especializa o algoritmo std::swap para std::array. Trocar o conteúdo de lhs e rhs. Chamadas lhs.swap(rhs).

Original:

Specializes the std::swap algorithm for std::array. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).

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

Parâmetros

lhs, rhs -

recipientes cujo conteúdo para trocar

Original:

containers whose contents to swap

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

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.

Complexidade

Linear in size of the container.

Veja também

Trocar o conteúdo

Original:

swaps the contents

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


(função pública membro) [edit]