7 template <
typename T,
typename Compare,
typename Alloc>
9 has(
const std::set<T, Compare, Alloc>& s,
const T& e)
11 return s.find(e) != std::end(s);
15 template <
typename T,
typename Compare,
typename Alloc>
16 std::set<std::set<T, Compare, Alloc>>
22 for (
const auto& set1: pset)
23 for (
const auto& set2: pset)
33 template <
typename T,
typename Compare,
typename Alloc>
35 print(
const std::set<T, Compare, Alloc>& set, std::ostream& o)
38 for (
const auto& m: set)
47 template <
typename Container>
48 bool subset(
const Container& set1,
const Container& set2)
50 return std::includes(set2.begin(), set2.end(),
51 set1.begin(), set1.end(),
std::set< std::set< T, Compare, Alloc > > intersection_closure(std::set< std::set< T, Compare, Alloc >> pset)
The set of all the intersections of the sets in pset.
Container set_intersection(const Container &s1, const Container &s2)
The intersection of two sets.
std::ostream & print(const Aut &aut, std::ostream &out=std::cout, const std::string &fmt="default")
bool subset(const Container &set1, const Container &set2) ATTRIBUTE_PURE
Whether set1 ⊆ set2.
ATTRIBUTE_PURE bool has(const boost::container::flat_set< Key, Compare, Allocator > &s, const Key &e)
Whether e is member of s.
Request the set implementation (bool weights).