Espacios de nombres
Variantes

std::swap(std::tuple)

De cppreference.com
 
 
Biblioteca de servicios
Apoyo del lenguaje
Apoyo de tipos (tipos básicos, RTTI)
Macros de prueba de característica de la biblioteca (C++20)
Servicios de programa
Funciones variádicas
Apoyo de corrutinas (C++20)
Apoyo de contratos (C++26)
Comparación de tres vías (C++20)
(C++20)
(C++20)(C++20)(C++20)  
(C++20)(C++20)(C++20)

 
 
template< class... Types >
void swap( tuple<Types...>& lhs, tuple<Types...>& rhs );
(desde C++11)
Intercambia los contenidos de lhs y rhs. Equivalente a lhs.swap(rhs) .
Original:
Swaps the contents of lhs and rhs. Equivalent to 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 -
tuplas cuyos contenidos para intercambiar
Original:
tuples 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

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

Excepciones

Especificación noexcept:   (desde C++11)
noexcept(noexcept(lhs.swap(rhs)))

Ver también