std::tuple::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. |
tuple& operator=( const tuple& other ); |
(1) | (depuis C++11) |
tuple& operator=( tuple&& other ); |
(2) | (depuis C++11) |
template< class... UTypes > tuple& operator=( const tuple<UTypes...>& other ); |
(3) | (depuis C++11) |
template< class... UTypes > tuple& operator=( tuple<UTypes...>&& other ); |
(4) | (depuis C++11) |
template< class U1, class U2 > tuple& operator=( const pair<U1,U2>& p ); |
(5) | (depuis C++11) |
template< class U1, class U2 > tuple& operator=( pair<U1,U2>&& p ); |
(6) | (depuis C++11) |
Remplace le contenu de l'uplet avec le contenu d'un n-uplet ou une paire .
1) Original:
Replaces the contents of the tuple with the contents of another tuple or a 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.
Copiez opérateur d'affectation. Remplace chaque élément d'une copie de l'élément correspondant de
2) other
.Original:
Copy assignment operator. Replaces each element with a copy of the corresponding element 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.
Déplacez opérateur d'affectation. Remplace chaque élément avec l'élément correspondant de
3) other
aide de la sémantique de déplacement . Original:
Move assignment operator. Replaces each element with the corresponding element 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.
Pour tous
4) i
, attribue à std::get<i>(other) std::get<i>(*this) .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.
Pour tous
5) i
, attribue à std::forward<Ui>(std::get<i>(other)) std::get<i>(*this) . 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.
Assigne p.first au premier élément de *this et p.second au second élément de *this .
6) Original:
Assigns p.first to the first element of *this and p.second to the second element of *this.
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.
Assigne std::forward<U1>(p.first) au premier élément de *this et std::forward<U2>(p.second) au second élément de *this .
Original:
Assigns std::forward<U1>(p.first) to the first element of *this and std::forward<U2>(p.second) to the second element of *this.
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.
Sommaire |
[modifier] Paramètres
other | - | tuple de remplacer le contenu de ce n-uplet
Original: tuple to replace the contents of this tuple The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
p | - | Combinaison de remplacer le contenu de ce 2-tuple
Original: pair to replace the contents of this 2-tuple The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
*this
[modifier] Exceptions
1)(Aucun)
2) 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: (depuis C++11)
3-5) noexcept(noexcept( is_nothrow_move_assignable<T0>::value && |
||
(Aucun)
6)
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.
[modifier] Exemple
This section is incomplete Reason: no example |