std::priority_queue::top
De cppreference.com
<metanoindex/>
<tbody> </tbody> 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.
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.
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.
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.
