std::pair::operator=
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> pair& operator=( const pair& other ); |
(1) | |
template< class U1, class U2 > pair& operator=( const pair<U1,U2>& other ); |
(2) | |
pair& operator=( pair&& other ); |
(3) | (dal C++11) |
template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other ); |
(4) | (dal C++11) |
Sostituisce il contenuto della coppia.
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.
1)
Copia operatore di assegnazione. Sostituisce il contenuto con una copia del contenuto di altri.
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.
2)
Assegna
other.first a first e 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.
3)
Spostare operatore di assegnazione. Sostituisce il contenuto con quelli della
other usando la semantica si muovono. 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.
4)
Assegna
std::forward<U1>(p.first) a first e std::forward<U2>(p.second) a second. Original:
Assigns
std::forward<U1>(p.first) to first and std::forward<U2>(p.second) to second. 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.
Parametri
| other | - | coppia di valori per sostituire il contenuto di questa coppia
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. |
Valore di ritorno
*this
Eccezioni
1-2)
(Nessuno)
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.
3)
noexcept specification: (dal C++11)
<tbody>
</tbody>
noexcept(noexcept( is_nothrow_move_assignable<T1>::value && is_nothrow_move_assignable<T2>::value )) |
||
4)
(Nessuno)
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.
Esempio
| This section is incomplete Reason: no example |