1 #ifndef TAGCOLL_UTILS_SET_H 2 #define TAGCOLL_UTILS_SET_H 40 typename std::set<T>::const_iterator a = set1.begin();
41 typename std::set<T>::const_iterator b = set2.begin();
43 while (a != set1.end() || b != set2.end())
44 if ((b == set2.end()) || (a != set1.end() && *a < *b))
49 else if ((a == set1.end()) || (b != set2.end() && *b < *a))
61 return intCount ?
res : -1;
65 bool set_contains(
const std::set<T>& set1,
const std::set<T>& set2)
67 typename std::set<T>::const_iterator b = set2.begin();
69 for (
typename std::set<T>::const_iterator a = set1.begin(); a != set1.end(); ++a)
77 return b == set2.end();
83 return set1.find(item) != set1.end();
String functions.
Definition: apt.cc:38
set< string > & res
Definition: packagerecord.cc:73