std::priority_queue::operator=
De cppreference.com
<metanoindex/>
<tbody> </tbody> priority_queue<T, Container>& operator=( const priority_queue<T,Container>& other ); |
(1) | |
priority_queue<T, Container>& operator=( priority_queue<T,Container>&& other ); |
(2) | (desde C++11) |
Substitui o conteúdo do recipiente com os adaptadores de
other.Original:
Replaces the contents of the container adaptor with those 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.
1)
Copiar operador de atribuição. Substitui o conteúdo com uma cópia do conteúdo do
other. Efetivamente chama c = other.c;. (declarada implicitamente)Original:
Copy assignment operator. Replaces the contents with a copy of the contents of
other. Effectively calls c = other.c;. (declarada implicitamente)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)
Mova operador de atribuição. Substitui o conteúdo com os de
other usando a semântica de movimento. Efetivamente chama c = std::move(other.c); (declarada implicitamente)Original:
Move assignment operator. Replaces the contents with those of
other using move semantics. Effectively calls c = std::move(other.c); (declarada implicitamente)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.
Parâmetros
| other | - | outro adaptador de recipiente a ser utilizado como fonte
Original: another container adaptor to be used as source 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
Complexidade
Equivalente ao de
{{{1}}} do recipiente subjacente.Original:
Equivalent to that of
{{{1}}} of the underlying container.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.
