📄 cpppriorityqueue_details.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> ->
<A HREF="cpppriorityqueue.html">C++ Priority Queues(优先队列)</A> -> 详细资料</TD>
</TR></TABLE>
<H1>C++ Priority Queues(优先队列)</H1>
<HR>
<H2>
<A NAME="empty">empty</A>
</H2>
<I>语法:</I>
<TABLE BGCOLOR="CCCCFF"><TR><TD><PRE>
bool empty();
</PRE></TD></TR></TABLE>
<P>
empty()函数返回真(true)如果优先队列为空,否则返回假(false)。</P>
<HR>
<H2>
<A NAME="pop">pop</A>
</H2>
<I>语法:</I>
<TABLE BGCOLOR="CCCCFF"><TR><TD><PRE>
void pop();
</PRE></TD></TR></TABLE>
<P>
pop()函数删除优先队列中的第一个元素。</P>
<HR>
<H2>
<A NAME="push">push</A>
</H2>
<I>语法:</I>
<TABLE BGCOLOR="CCCCFF"><TR><TD><PRE>
void push( const <A HREF="containers.html">TYPE</A> &val );
</PRE></TD></TR></TABLE>
<P>
push()函数添加一个元素到优先队列中,值为val。</P>
<HR>
<H2>
<A NAME="size">size</A>
</H2>
<I>语法:</I>
<TABLE BGCOLOR="CCCCFF"><TR><TD><PRE>
size_type size();
</PRE></TD></TR></TABLE>
<P>
size()函数返回优先队列中存储的元素个数。</P>
<HR>
<H2>
<A NAME="top">top</A>
</H2>
<I>语法:</I>
<TABLE BGCOLOR="CCCCFF"><TR><TD><PRE>
<A HREF="containers.html">TYPE</A> &top();
</PRE></TD></TR></TABLE>
<P>
top()返回一个引用,指向优先队列中有最高优先级的元素。注意只有<A HREF="#pop">pop()</A>函数删除一个元素。</P>
</BODY>
</HTML>
<br><html>
<head>
<meta http-equiv='Content-Type' content='text/html' charset='ISO_8859_1'>
<title>151</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 /* <!-- 151 --> */
{
padding: 0px 10px 0px 22px;
}
h1, h2, h3, h4 /* <!-- 151 --> */
{
font-family: Verdana, Arial, Helvetica, sans-serif;
margin-bottom: .4em;
margin-top: 0em;
font-weight: bold;
}
-->
</style>
</head>
<body><!-- 151 -->
<div id='StrBanner'>
<div>
<table class='TableBanner' cellspacing='0'>
<tr>
<td ALIGN=RIGHT><!-- 151 --></td>
<td ALIGN=RIGHT><!-- 151 --></td> </tr>
</table>
</div>
<div id='TitleRow'>
<h3>Extr<!-- 151 -->acted by <!-- 151 -->Tria<!-- 151 -->l version of Ch<!-- 151 -->mDecom<!-- 151 -->piler<!-- 151 --> (<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target=_blank>Download Now</a>).</h3>
<h4>Once reg<!-- 151 -->istered, <!-- 151 -->all restrictions of the Tr<!-- 151 -->ial version are removed.</h4>
<a href="http://www.zipghost.com/order_chmdecompiler.html" target=_blank><H3>B<!-- 151 -->uy Now</H3></a>
</div>
</div>
<p><!-- 151 -->
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -