std::priority_queue::top
Da cppreference.com
< cpp | container | priority queue
![]() | 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. |
const_reference top()const; | ||
Retorna referência para o elemento superior na fila prioritária. Este elemento será removido em uma chamada para
pop()
. Se a função de comparação de padrão é usado, o elemento retornado também é maior entre os elementos na fila. Original:
Returns reference to the top element in the priority queue. This element will be removed on a call to
pop()
. If default comparison function is used, the returned element is also the greatest among the elements in the queue. 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.
Índice |
[editar]Parâmetros
(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.
You can help to correct and verify the translation. Click here for instructions.
[editar]Valor de retorno
Referência para o elemento de topo como se obtida por uma chamada para c.back()(desde C++11)
Original:
Reference to the top element as if obtained by a call to c.back()(desde C++11)
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.
Referência para o elemento de topo como se obtida por uma chamada para c.front()(até C++11)
Original:
Reference to the top element as if obtained by a call to c.front()(até C++11)
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.
[editar]Complexidade
Constante.
Original:
Constant.
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.
[editar]Veja também
remove o primeiro elemento Original: removes the first element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) |