Home | History | Annotate | Download | only in ADT

Lines Matching refs:S1

23 bool set_union(S1Ty &S1, const S2Ty &S2) {
28 if (S1.insert(*SI).second)
36 /// is nicer to use. Functionally, this iterates through S1, removing
40 void set_intersect(S1Ty &S1, const S2Ty &S2) {
41 for (typename S1Ty::iterator I = S1.begin(); I != S1.end();) {
44 if (!S2.count(E)) S1.erase(E); // Erase element if not in S2
51 S1Ty set_difference(const S1Ty &S1, const S2Ty &S2) {
53 for (typename S1Ty::const_iterator SI = S1.begin(), SE = S1.end();
63 void set_subtract(S1Ty &S1, const S2Ty &S2) {
66 S1.erase(*SI);