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

Method in

test/set/precede.cpp:58–62  ·  view source on GitHub ↗

Check if \a i is a member of set \a x

Source from the content-addressed store, hash-verified

56
57 /// Check if \a i is a member of set \a x
58 bool in(int i, int x) const {
59 CountableSetRanges xr(ds,x);
60 Iter::Ranges::Singleton ir(i,i);
61 return Iter::Ranges::subset(ir,xr);
62 }
63
64 public:
65 /// Create and register test

Callers

nothing calls this directly

Calls 1

subsetFunction · 0.50

Tested by

no test coverage detected