📄 cppqueue_details.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++ Queues</title> </head> <body bgcolor="#ffffff"> <table width="100%" bgcolor="#eeeeff"> <tr> <td><a href="index.html">cppreference.com</a> -> <a href="cppqueue.html">C++ Queues</a> -> Details</td> </tr> </table> <h1>C++ Queues</h1> <hr> <h2><a name="back">back</a></h2> <i>Syntax:</i> <table bgcolor="#ccccff"> <tr> <td><pre> <a href="containers.html">TYPE</a> &back();</pre> </td> </tr> </table> <p>The function back() returns a reference to the last element in the current queue.</p> <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 queue is empty, and <strong>false</strong> otherwise.</p> <hr> <h2><a name="front">front</a></h2> <i>Syntax:</i> <table bgcolor="#ccccff"> <tr> <td><pre> <a href="containers.html">TYPE</a> &front();</pre> </td> </tr> </table> <p>The function front() returns a reference to the first element in the current queue.</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 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> &val );</pre> </td> </tr> </table> <p>The function push() adds an element to the current 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 queue.</p> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -