Daily bit(e) of C++ | std::set_union, std::set_intersection, std::set_difference, std::set_symmetric_difference
Daily bit(e) of C++ #277, The four algorithms implementing set operations on sorted ranges: std::set_union, std::set_intersection, std::set_difference, std::set_symmetric_difference.
The four algorithms: std::set_union, std::set_intersection, std::set_difference and std::set_symmetric_difference provide the corresponding set operations on top of sorted ranges.
Because C++ objects can be both equivalent yet distinct, there is additional complexity in which elements are selected.