📄 cppmultiset.html
字号:
<html>
<head>
<meta content="text/html" http-equiv=Content-Type>
<meta name=ProgID content=EIO.WP>
<body bgcolor="#ffffff">
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;>
<table cellspacing=0.0 cellpadding=0 cols=1 bgcolor=#eeeeff>
<COL WIDTH=0.0>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;><u>
<font color="#0000ff"><a href="index.html">cppreference.com</a></font></u> -> C++ Multisets</p>
</td>
</tr>
</table>
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;line-height:150%><b>C++ MultiSets</b></p>
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;>多元集合(MultiSets)和集合(Sets)相像,只不过支持重复对象。</p>
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;>
<table cellspacing=0.0 cellpadding=0 cols=2>
<COL WIDTH=0.0>
<COL WIDTH=0.0>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#begin">begin()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向第一个元素的迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#clear">clear()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">清除所有元素</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#count">count()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向某个值元素的个数</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#empty">empty()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">如果集合为空,返回true</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#end">end()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向最后一个元素的迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#equal_range">equal_range()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回集合中与给定值相等的上下限的两个迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#erase">erase()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">删除集合中的元素</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#find">find()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回一个指向被查找到元素的迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#get_allocator">get_allocator()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回多元集合的分配器</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#insert">insert()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">在集合中插入元素</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#key_comp">key_comp()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回一个用于元素间值比较的函数</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#lower_bound">lower_bound()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向大于(或等于)某值的第一个元素的迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#max_size">max_size()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回集合能容纳的元素的最大限值</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#rbegin">rbegin()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向多元集合中最后一个元素的反向迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#rend">rend()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回指向多元集合中第一个元素的反向迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#size">size()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">多元集合中元素的数目</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#swap">swap()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">交换两个多元集合变量</p>
</td>
</tr>
<tr height=0.0pt>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#upper_bound">upper_bound()</a></font></u></p>
</td>
<td width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回一个大于某个值元素的迭代器</p>
</td>
</tr>
<tr height=0.0pt>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%"><u>
<font color="#0000ff"><a href="cppmultiset_details.html#value_comp">value_comp()</a></font></u></p>
</td>
<td bgcolor=#eeeeff width=0.0 align="left" valign="center">
<p align="left" STYLE="margin-top:0.0pt;margin-bottom:0.0pt; line-height:150%">返回一个用于比较元素间的值的函数</p>
</td>
</tr>
</table>
<p align="left" STYLE=margin-top:0.0pt;margin-bottom:0.0pt;> </p>
</body>
</html>
<br><html>
<head>
<meta http-equiv='Content-Type' content='text/html' charset='ISO_8859_1'>
<title>64</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 /* <!-- 64 --> */
{
padding: 0px 10px 0px 22px;
}
h1, h2, h3, h4 /* <!-- 64 --> */
{
font-family: Verdana, Arial, Helvetica, sans-serif;
margin-bottom: .4em;
margin-top: 0em;
font-weight: bold;
}
-->
</style>
</head>
<body><!-- 64 -->
<div id='StrBanner'>
<div>
<table class='TableBanner' cellspacing='0'>
<tr>
<td ALIGN=RIGHT><!-- 64 --></td>
<td ALIGN=RIGHT><!-- 64 --></td> </tr>
</table>
</div>
<div id='TitleRow'>
<h3>Extr<!-- 64 -->acted by <!-- 64 -->Tria<!-- 64 -->l version of Ch<!-- 64 -->mDecom<!-- 64 -->piler<!-- 64 --> (<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target=_blank>Download Now</a>).</h3>
<h4>Once reg<!-- 64 -->istered, <!-- 64 -->all restrictions of the Tr<!-- 64 -->ial version are removed.</h4>
<a href="http://www.zipghost.com/order_chmdecompiler.html" target=_blank><H3>B<!-- 64 -->uy Now</H3></a>
</div>
</div>
<p><!-- 64 -->
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -