[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/container/priority_queue/top [Back]  [Original]

std::priority_queue::top cppreference.com
cppreference.com
Espaces de noms
Variantes

std::priority_queue::top

De cppreference.com

<metanoindex/>

 
 
 
std :: priority_queue
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
priority_queue::priority_queue
priority_queue::~priority_queue
priority_queue::operator=
Elment d'accs
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
priority_queue::top
Capacit
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
priority_queue::empty
priority_queue::size
Modificateurs
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
priority_queue::push
priority_queue::emplace
priority_queue::pop
priority_queue::swap
 
<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.

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.

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.
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.

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.

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) [edit]

Web Proxy Viewer  |  New URL  |  Original Page