总和,并集,交集处理

merge(sourcebeg,sourceend,source2beg,source2end,destbeg);

merge(sourcebeg,sourceend,source2beg,source2end,destbeg,op);

两个已序合集合并

 

set_union(sbeg,send,s2beg,s2end,destbeg);

set_union(sbeg,send,s2beg,s2end,destbeg,op);

已续合集的并集

 

set_intersection(sbeg,send,s2beg,s2end,destbeg);

set_intersection(sbeg,send,s2beg,s2end,destbeg,op);

已续合集的交集

 

set_difference(sbeg,send,s1beg,s1end,destbeg);

set_difference(sbeg,send,s1beg,s1end,destbeg,op);

 

 

 

posted @ 2010-10-14 13:29  linyilong  阅读(243)  评论(0编辑  收藏  举报