⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpppriorityqueue_details.html

📁 ssd5 数据结构的课件
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st October 2002), see www.w3.org">    <title>C++ Priority Queues</title>  </head>  <body bgcolor="#ffffff">    <table width="100%" bgcolor="#eeeeff">      <tr>        <td><a href="index.html">cppreference.com</a> -&gt; <a href="cpppriorityqueue.html">C++ Priority        Queues</a> -&gt; Details</td>      </tr>    </table>    <h1>C++ Priority Queues</h1>    <hr>    <h2><a name="empty">empty</a></h2>    <i>Syntax:</i>     <table bgcolor="#ccccff">      <tr>        <td><pre>  bool empty();</pre>        </td>      </tr>    </table>    <p>The empty() function returns <strong>true</strong> if the current priority queue is empty, and    <strong>false</strong> otherwise.</p>    <hr>    <h2><a name="pop">pop</a></h2>    <i>Syntax:</i>     <table bgcolor="#ccccff">      <tr>        <td><pre>  void pop();</pre>        </td>      </tr>    </table>    <p>The function pop() discards the first element in the current priority queue.</p>    <hr>    <h2><a name="push">push</a></h2>    <i>Syntax:</i>     <table bgcolor="#ccccff">      <tr>        <td><pre>  void push( const <a href="containers.html">TYPE</a> &amp;val );</pre>        </td>      </tr>    </table>    <p>The function push() adds an element to the current priority queue.</p>    <hr>    <h2><a name="size">size</a></h2>    <i>Syntax:</i>     <table bgcolor="#ccccff">      <tr>        <td><pre>  size_type size();</pre>        </td>      </tr>    </table>    <p>The size() function returns the number of things in the current priority queue.</p>    <hr>    <h2><a name="top">top</a></h2>    <i>Syntax:</i>     <table bgcolor="#ccccff">      <tr>        <td><pre>   <a href="containers.html">TYPE</a> &amp;top();</pre>        </td>      </tr>    </table>    <p>The top() function returns a reference to the element in the queue with the highest priority. Note    that only <a href="#pop">pop()</a> removes an element.</p>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -