Lines Matching defs:S2
23 bool set_union(S1Ty &S1, const S2Ty &S2) {
26 for (typename S2Ty::const_iterator SI = S2.begin(), SE = S2.end();
37 /// elements that are not contained in S2.
40 void set_intersect(S1Ty &S1, const S2Ty &S2) {
44 if (!S2.count(E)) S1.erase(E); // Erase element if not in S2
51 S1Ty set_difference(const S1Ty &S1, const S2Ty &S2) {
55 if (!S2.count(*SI)) // if the element is not in set2
63 void set_subtract(S1Ty &S1, const S2Ty &S2) {
64 for (typename S2Ty::const_iterator SI = S2.begin(), SE = S2.end();