std::priority_queue::top
De cppreference.com
[] |
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. |
<metanoindex/>
<tbody> </tbody> const_reference top() const; |
||
Renvoie rfrence l'lment suprieur dans la file d'attente de priorit. Cet lment sera supprim sur un appel
pop(). Si la fonction de comparaison par dfaut est utilis, l'lment retourn est galement le plus grand parmi les lments de la file d'attente . 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.
Paramtres
(Aucun)
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.
Retourne la valeur
Rfrence l'lment suprieur que si elle est obtenue par un appel
c.back() (depuis C++11)Original:
Reference to the top element as if obtained by a call to
c.back() (depuis 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.
Rfrence l'lment suprieur que si elle est obtenue par un appel
c.front() (avant C++11)Original:
Reference to the top element as if obtained by a call to
c.front() (avant 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.
Complexit
Constant .
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.
Voir aussi
supprime le premier lment 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. (fonction membre publique) | |