std::priority_queue<T,Container,Compare>::top (3) - Linux Manuals
std::priority_queue<T,Container,Compare>::top: std::priority_queue<T,Container,Compare>::top
Command to display std::priority_queue<T,Container,Compare>::top
manual in Linux: $ man 3 std::priority_queue<T,Container,Compare>::top
NAME
std::priority_queue<T,Container,Compare>::top - std::priority_queue<T,Container,Compare>::top
Synopsis
const_reference top() const;
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.
Parameters
(none)
Return value
Reference to the top element as if obtained by a call to c.front()
Complexity
Constant.
See also
removes the top element
pop (public member function)
Pages related to std::priority_queue<T,Container,Compare>::top
- std::priority_queue<T,Container,Compare>::emplace (3) - std::priority_queue<T,Container,Compare>::emplace
- std::priority_queue<T,Container,Compare>::empty (3) - std::priority_queue<T,Container,Compare>::empty
- std::priority_queue<T,Container,Compare>::operator= (3) - std::priority_queue<T,Container,Compare>::operator=
- std::priority_queue<T,Container,Compare>::pop (3) - std::priority_queue<T,Container,Compare>::pop
- std::priority_queue<T,Container,Compare>::priority_queue (3) - std::priority_queue<T,Container,Compare>::priority_queue
- std::priority_queue<T,Container,Compare>::push (3) - std::priority_queue<T,Container,Compare>::push
- std::priority_queue<T,Container,Compare>::size (3) - std::priority_queue<T,Container,Compare>::size
- std::priority_queue<T,Container,Compare>::swap (3) - std::priority_queue<T,Container,Compare>::swap
- std::priority_queue<T,Container,Compare>::~priority_queue (3) - std::priority_queue<T,Container,Compare>::~priority_queue
- std::priority_queue (3) - std::priority_queue
- std::printf,std::fprintf,std::sprintf,std::snprintf (3) - std::printf,std::fprintf,std::sprintf,std::snprintf
- std::prev (3) - std::prev