std::priority_queue::top
Da cppreference.com.
< cpp | container | priority queue
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
const_reference top() const; |
||
Restituisce riferimento all'elemento superiore nella coda di priorità. Questo elemento verrà rimosso in una chiamata a
pop()
. Se confronto funzione predefinita viene utilizzato, l'elemento restituito è anche il più grande tra gli elementi della coda. 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.
Indice |
[modifica] Parametri
(Nessuno)
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.
[modifica] Valore di ritorno
Riferimento all'elemento superiore come se ottenuto da una chiamata al c.back() (dal C++11)
Original:
Reference to the top element as if obtained by a call to c.back() (dal 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.
Riferimento all'elemento superiore come se ottenuto da una chiamata al c.front() (fino al c++11)
Original:
Reference to the top element as if obtained by a call to c.front() (fino al 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.
[modifica] Complessità
Costante.
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.
[modifica] Vedi anche
rimuove il primo 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. (metodo pubblico) |