std::priority_queue::top

来自cppreference.com

 
 
 
的std :: priority_queue
成员函数
原文:
Member functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
priority_queue::priority_queue
priority_queue::~priority_queue
priority_queue::operator=
元素的访问
原文:
Element access
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
priority_queue::top
容量
原文:
Capacity
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
priority_queue::empty
priority_queue::size
修饰符
原文:
Modifiers
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
priority_queue::push
priority_queue::emplace
priority_queue::pop
priority_queue::swap
 
const_reference top() const;
返回优先级队列中的顶级元素。 pop()呼叫,该元素将被删除。如果使用默认比较函数,返回的元素也是在队列中的元素之间的最大.
原文:
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.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

目录

[编辑] 参数

(无)
原文:
(none)
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 返回值

参考最上面的元素,如果获得通过调用c.back()(C++11 起)
原文:
Reference to the top element as if obtained by a call to c.back() (C++11 起)
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
参考最上面的元素,如果获得通过调用c.front()(至 C++11)
原文:
Reference to the top element as if obtained by a call to c.front() (至 C++11)
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 复杂度

恒定
原文:
Constant.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 另请参阅

删除第一个元素
原文:
removes the first element
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(公共成员函数) [edit]