MCPcopy Create free account
hub / github.com/Gecode/gecode / optional

Function optional

gecode/int/no-overlap.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 namespace Int { namespace NoOverlap {
39
40 bool
41 optional(const BoolVarArgs& m) {
42 for (int i=0; i<m.size(); i++)
43 if (m[i].none())
44 return true;
45 return false;
46 }
47
48 }}
49

Callers 1

nooverlapFunction · 0.85

Calls 2

sizeMethod · 0.45
noneMethod · 0.45

Tested by

no test coverage detected