O(1) 的小乐
豆瓣账号:http://www.douban.com/people/sosisarah/
摘要: 以下是STL algorithm的几个函数,使用的条件是有序容器,所以 vector在被sort了之后是可以使用的,set也是可以使用的。 set_difference 这个是求得在第一个容器中有,第二个容器中没有的。set_intersection 求两个容器的交, set_union 求两个容器的并。 set_symmetric_difference 求两个容器的差。 最后使用的时候注意要... 阅读全文
posted @ 2014-04-12 18:09 O(1)的小乐 阅读(1970) 评论(0) 推荐(0) 编辑