📄 cpplist.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++ Lists</title> </head> <body bgcolor="#ffffff"> <table width="100%" bgcolor="#eeeeff"> <tr> <td><a href="index.html">cppreference.com</a> -> C++ Lists</td> </tr> </table> <h3>C++ Lists</h3> <p>Lists are sequences of elements stored in a linked list. Compared to <a href= "cppvector.html">vectors</a>, they allow fast insertions and deletions, but slower random access.</p> <table> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#assign">assign()</a></td> <td>assign a sequence to the list</td> </tr> <tr> <td><a href="cpplist_details.html#back">back()</a></td> <td>returns the last element</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#begin">begin()</a></td> <td>returns an iterator to the beginning</td> </tr> <tr> <td><a href="cpplist_details.html#clear">clear()</a></td> <td>removes all elements</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#empty">empty()</a></td> <td>true if the list is empty</td> </tr> <tr> <td><a href="cpplist_details.html#end">end()</a></td> <td>returns an iterator to the end</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#erase">erase()</a></td> <td>erase an element</td> </tr> <tr> <td><a href="cpplist_details.html#front">front()</a></td> <td>returns the first element</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#get_allocator">get_allocator()</a></td> <td>returns the list's allocator</td> </tr> <tr> <td><a href="cpplist_details.html#insert">insert()</a></td> <td>insert elements into the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#max_size">max_size()</a></td> <td>returns the maximum number of elements the list can hold</td> </tr> <tr> <td><a href="cpplist_details.html#merge">merge()</a></td> <td>merge two lists</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#pop_back">pop_back()</a></td> <td>removes the last element</td> </tr> <tr> <td><a href="cpplist_details.html#pop_front">pop_front()</a></td> <td>removes the first element</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#push_back">push_back()</a></td> <td>add an element to the end of the list</td> </tr> <tr> <td><a href="cpplist_details.html#push_front">push_front()</a></td> <td>add an element to the front of the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#rbegin">rbegin()</a></td> <td>returns a reverse iterator to the beginning of the list</td> </tr> <tr> <td><a href="cpplist_details.html#remove">remove()</a></td> <td>removes elements from the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#remove_if">remove_if()</a></td> <td>removes elements conditionally</td> </tr> <tr> <td><a href="cpplist_details.html#rend">rend()</a></td> <td>returns a reverse iterator to the end of the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#resize">resize()</a></td> <td>change the size of the list</td> </tr> <tr> <td><a href="cpplist_details.html#reverse">reverse()</a></td> <td>reverse the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#size">size()</a></td> <td>the number the elements in the list</td> </tr> <tr> <td><a href="cpplist_details.html#sort">sort()</a></td> <td>sorts the list</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#splice">splice()</a></td> <td>merge two lists</td> </tr> <tr> <td><a href="cpplist_details.html#swap">swap()</a></td> <td>exchange two lists</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cpplist_details.html#unique">unique()</a></td> <td>removes duplicate elements</td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -