Espaços nominais
Variantes
Ações

std::pair::operator=

De cppreference.com

<metanoindex/>

 
 
Biblioteca de utilitários
Digite apoio (basic types, RTTI, type traits)
Gerenciamento de memória dinâmica
De tratamento de erros
Utilidades do programa
Variadic funções
Data e hora
Objetos de função
(C++11)
Os operadores relacionais
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Pares e tuplas
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Troque, avançar e avançar
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
 
std::pair
Funções de membro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair::pair
pair::operator=
pair::swap
Não-membros funções
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Classes auxiliares
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
<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) (desde C++11)
template< class U1, class U2 > pair& operator=( pair<U1,U2>&& other );
(4) (desde C++11)
Substitui o conteúdo do par.
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.

1)

Copiar operador de atribuição. Substitui o conteúdo com uma cópia do conteúdo de outro.
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.

2)

Atribui other.first para first e other.second para second
Original:
Assigns other.first to first and other.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.

3)

Mova operador de atribuição. Substitui o conteúdo com os de other usando semântica mover.
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.

4)

Atribui std::forward<U1>(p.first) para first e std::forward<U2>(p.second) para 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.

Parâmetros

other -
par de valores para substituir o conteúdo deste 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.

Valor de retorno

*this

Exceções

1-2)

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

3)

noexcept specification:  (desde C++11)
<tbody> </tbody>
noexcept(noexcept( is_nothrow_move_assignable<T1>::value && is_nothrow_move_assignable<T2>::value ))

4)

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

Exemplo

Veja também