开发者

C++/STL: XOR of two set

Given two STL sets, I want to find out the XOR of them. Is there an easy, pre开发者_如何学编程-existing way to do that?


You can use std::set_symmetric_difference from the C++ standard library.


Yes: std::set_symmetric_difference


Try std::set_symmetric_difference:

http://www.cplusplus.com/reference/algorithm/set_symmetric_difference/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜