总和,并集,交集处理

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);

 

 

 

你可能感兴趣的:(交集)