std::priority_queue::top
De 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; |
||
Devuelve referencia al elemento superior de la cola de prioridad. Este elemento se quitará en una llamada a
pop()
. Si la función por defecto comparación se utiliza, el elemento devuelto es también el más grande entre los elementos en la cola . 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.
Contenido |
[editar] Parámetros
(Ninguno)
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
Referencia al elemento superior como si se obtiene mediante una llamada a 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.
Referencia al elemento superior como si se obtiene mediante una llamada a c.front() (hasta C++11)
Original:
Reference to the top element as if obtained by a call to c.front() (hasta 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] Complejidad
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] Ver también
elimina el primer 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. (función miembro público) |