STL set

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了STL set相关的知识,希望对你有一定的参考价值。

begin()        

end()      

clear()          

empty()    

max_size()   

size()     

rbegin     

rend()    

count()

equal_range()

erase(iterator)  

erase(first,last)

erase(key_value)

find()

 

insert(key_value)

inset(first,last)

lower_bound(key_value)       返回第一个大于等于key_value的定位器

upper_bound(key_value)       返回最后一个大于等于key_value的定位器

以上是关于STL set的主要内容,如果未能解决你的问题,请参考以下文章

STL源代码剖析——STL算法之set集合算法

STL

STL--set使用用法

STL:set用法总结

STL容器 set

STL set 详细用法