std::array::swap
De cppreference.com
<metanoindex/>
<tbody> </tbody> void swap( array& other ); |
(desde C++11) | |
Exchanges the contents of the container with those of other. Does not cause iterators and references to associate with the other container.
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. 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.
You can help to correct and verify the translation. Click here for instructions.
Exceções
noexcept specification: (desde C++11)
<tbody>
</tbody>
noexcept(noexcept(std::swap(declval<T&>(), declval<T&>()))) |
||
Complexidade
Linear in size of the container.
