MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / hashset_without

Function hashset_without

utility/common.h:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149template <class T, class Iterable>
150HashSet<T> hashset_without(const HashSet<T> &h, const Iterable &to_erase) {
151 HashSet<T> ret;
152 for (const auto &E : h) {
153 if (!to_erase.has(E)) {
154 ret.insert(E);
155 }
156 }
157 return ret;
158}
159
160template <class T, class Iterable>
161bool has_all(const HashSet<T> &h, const Iterable &to_find) {

Callers 1

export_resourceMethod · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected