std::pair::operator=
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| pair& operator=( const pair& other ); |
(1) | |
| template< class U1, class U2 > pair& operator=( const pair<U1,U2>& other ); |
(2) | |
| pair& operator=( pair&& other ); |
(3) | (ya que C + +11) |
| template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other ); |
(4) | (ya que C + +11) |
Reemplaza el contenido de la par .
1) Original:
Replaces the contents of the pair.
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.
Copiar el operador de asignación. Reemplaza el contenido con una copia de los contenidos de otra .
2) Original:
Copy assignment operator. Replaces the contents with a copy of the contents of other.
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.
Asigna
3) other.first a first y other.second a secondOriginal:
Assigns
other.first to first and other.second to secondThe 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.
Mueva operador de asignación. Reemplaza el contenido con los de
4) other utilizando la semántica de movimiento . Original:
Move assignment operator. Replaces the contents with those of
other using move semantics. 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.
Asigna std::forward<U1>(p.first) a
first y std::forward<U2>(p.second) a second . Original:
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.
Contenido |
[editar] Parámetros
| other | - | par de valores para reemplazar el contenido de este par
Original: pair of values to replace the contents of this pair The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
*this
[editar] Excepciones
1-2)(Ninguno)
3)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.
noexcept specification: (ya que C + +11)
4) | noexcept(noexcept( is_nothrow_move_assignable<T1>::value && |
||
(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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Ejemplo
| This section is incomplete Reason: no example |