Set/Multiset:

Set/Multiset:

此种容器内的元素是已序的,插入任何元素,都按相应的排序准则来确定其位置。

Set中不允许相同元素,multiset中允许存在相同的元素。

<group id="_x0000_s1068" style="MARGIN-TOP: 0px; Z-INDEX: 6; LEFT: 0px; MARGIN-LEFT: 90pt; WIDTH: 153pt; POSITION: absolute; HEIGHT: 85.8pt; TEXT-ALIGN: left" coordorigin="3597,5184" coordsize="3060,1716"><group id="_x0000_s1069" style="LEFT: 3597px; WIDTH: 3060px; POSITION: absolute; TOP: 5184px; HEIGHT: 1716px" coordorigin="3957,2532" coordsize="3060,1716"><oval id="_x0000_s1070" style="LEFT: 3957px; WIDTH: 3060px; POSITION: absolute; TOP: 2532px; HEIGHT: 1716px"><font size="3"></font></oval><rect id="_x0000_s1071" style="LEFT: 4677px; WIDTH: 360px; POSITION: absolute; TOP: 3000px; HEIGHT: 312px"><font size="3"></font></rect><rect id="_x0000_s1072" style="LEFT: 5217px; WIDTH: 360px; POSITION: absolute; TOP: 3000px; HEIGHT: 312px"><font size="3"></font></rect><rect id="_x0000_s1073" style="LEFT: 4677px; WIDTH: 360px; POSITION: absolute; TOP: 3624px; HEIGHT: 312px"><font size="3"></font></rect><rect id="_x0000_s1074" style="LEFT: 5217px; WIDTH: 360px; POSITION: absolute; TOP: 3624px; HEIGHT: 312px"><font size="3"></font></rect><rect id="_x0000_s1075" style="LEFT: 5937px; WIDTH: 360px; POSITION: absolute; TOP: 3000px; HEIGHT: 312px"><font size="3"></font></rect><rect id="_x0000_s1076" style="LEFT: 5937px; WIDTH: 360px; POSITION: absolute; TOP: 3624px; HEIGHT: 312px"><font size="3"></font></rect></group><line id="_x0000_s1077" style="POSITION: absolute" from="4497,5652" to="4497,5964"><font size="3"></font></line><line id="_x0000_s1078" style="POSITION: absolute" from="5037,5652" to="5037,5964"><font size="3"></font></line><line id="_x0000_s1079" style="POSITION: absolute" from="5757,5652" to="5757,5964"><font size="3"></font></line><line id="_x0000_s1080" style="POSITION: absolute" from="4497,6276" to="4497,6588"><font size="3"></font></line><line id="_x0000_s1081" style="POSITION: absolute" from="5037,6276" to="5037,6588"><font size="3"></font></line><line id="_x0000_s1082" style="POSITION: absolute" from="5757,6276" to="5757,6588"><font size="3"></font></line></group>Map/Multimap:

Map同Multimap的不同在于是否允许相同的元素。

Map与Set的不同在于Map中存放的是成对的key/value。

并根据key对元素进行排序。

你可能感兴趣的:(set)