std::pair::operator=
Aus 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. |
<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) | (seit C++11) |
template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other ); |
(4) | (seit C++11) |
Ersetzt den Inhalt des Paares .
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)
Kopieren Zuweisungsoperator. Ersetzt den Inhalt mit einer Kopie des Inhalts von anderen .
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)
Weist
other.first um first und other.second um 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)
Bewegen Zuweisungsoperator. Ersetzt den Inhalt mit denen
other mit move-Semantik . 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)
Weist
std::forward<U1>(p.first) um first und std::forward<U2>(p.second) um 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.
Parameter
| other | - | Wertepaar, um den Inhalt dieses Paares zu ersetzen
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. |
Rückgabewert
*this
Ausnahmen
1-2)
(None)
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: (seit C++11)
<tbody>
</tbody>
noexcept(noexcept( is_nothrow_move_assignable<T1>::value && is_nothrow_move_assignable<T2>::value )) |
||
4)
(None)
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.
Beispiel
| This section is incomplete Reason: no example |