std::priority_queue::top
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> const_reference top() const; |
||
Gibt Verweis auf das oberste Element in der Prioritätswarteschlange. Dieses Element wird auf der Aufruf
pop() entfernt werden. Wenn Standard Vergleichsfunktion verwendet wird, ist das Element auch wieder die größte unter den Elementen in der Warteschlange . 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.
Parameter
(None)
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.
Rückgabewert
Der Verweis auf das oberste Element, als ob durch einen Aufruf
c.back() (seit C++11) erhaltenOriginal:
Reference to the top element as if obtained by a call to
c.back() (seit 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.
Der Verweis auf das oberste Element, als ob durch einen Aufruf
c.front() (bis C + +11) erhaltenOriginal:
Reference to the top element as if obtained by a call to
c.front() (bis 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.
Komplexität
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.
