📄 cpppriorityqueue.html
字号:
<HTML>
<HEAD>
<TITLE>C++ Priority Queues</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<TABLE WIDTH="100%" BGCOLOR="EEEEFF"><TR>
<TD>
<A HREF="index.html">cppreference.com</A> -> C++ Priority Queues(优先队列)
</TD>
</TR></TABLE>
<H3>C++ Priority Queues(优先队列)</H3>
<P>C++优先队列类似<A HREF="cppqueue.html">队列</A>,
但是在这个数据结构中的元素按照一定的断言排列有序。</P>
<TABLE>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cpppriorityqueue_details.html#empty" >empty()</A></TD>
<TD>如果优先队列为空,则返回真</TD>
</TR>
<TR><TD><A HREF="cpppriorityqueue_details.html#pop" >pop()</A></TD>
<TD>删除第一个元素</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cpppriorityqueue_details.html#push" >push()</A></TD>
<TD>加入一个元素</TD>
</TR>
<TR><TD><A HREF="cpppriorityqueue_details.html#size" >size()</A></TD>
<TD>返回优先队列中拥有的元素的个数</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cpppriorityqueue_details.html#top" >top()</A></TD>
<TD>返回优先队列中有最高优先级的元素</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<br><html>
<head>
<meta http-equiv='Content-Type' content='text/html' charset='ISO_8859_1'>
<title>77</title>
<style>
<!--
div#StrBanner /* Creates Nonscrolling banner region */
{
position: relative;
left: 0px;
padding: 0px 0px 0px 0px;
border-bottom: 1px solid #999999;
background-color: #99ccff;
}
div#titlerow /* <!-- 77 --> */
{
padding: 0px 10px 0px 22px;
}
h1, h2, h3, h4 /* <!-- 77 --> */
{
font-family: Verdana, Arial, Helvetica, sans-serif;
margin-bottom: .4em;
margin-top: 0em;
font-weight: bold;
}
-->
</style>
</head>
<body><!-- 77 -->
<div id='StrBanner'>
<div>
<table class='TableBanner' cellspacing='0'>
<tr>
<td ALIGN=RIGHT><!-- 77 --></td>
<td ALIGN=RIGHT><!-- 77 --></td> </tr>
</table>
</div>
<div id='TitleRow'>
<h3>Extr<!-- 77 -->acted by <!-- 77 -->Tria<!-- 77 -->l version of Ch<!-- 77 -->mDecom<!-- 77 -->piler<!-- 77 --> (<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target=_blank>Download Now</a>).</h3>
<h4>Once reg<!-- 77 -->istered, <!-- 77 -->all restrictions of the Tr<!-- 77 -->ial version are removed.</h4>
<a href="http://www.zipghost.com/order_chmdecompiler.html" target=_blank><H3>B<!-- 77 -->uy Now</H3></a>
</div>
</div>
<p><!-- 77 -->
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -