MCPcopy Create free account
hub / github.com/DFHack/dfhack / set_difference

Function set_difference

plugins/channel-safely/include/inlines.h:320–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319template<class Ctr1, class Ctr2, class Ctr3>
320void set_difference(const Ctr1 &c1, const Ctr2 &c2, Ctr3 &c3) {
321 for (const auto &a : c1) {
322 if (!c2.count(a)) {
323 c3.emplace(a);
324 }
325 }
326}
327
328template<class Ctr1, class Ctr2, class Ctr3>
329void map_value_difference(const Ctr1 &c1, const Ctr2 &c2, Ctr3 &c3) {

Callers 1

scanMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected