MCPcopy Create free account
hub / github.com/Gecode/gecode / TakesStatus takes

Function TakesStatus takes

gecode/int/sequence/set-op.hpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 /// Return whether view \a x takes value \a s
44 template<class View>
45 forceinline TakesStatus
46 takes(const View& x, int s) {
47 if (x.in(s))
48 return x.assigned() ? TS_YES : TS_MAYBE;
49 else
50 return TS_NO;
51 }
52 /// Return whether view \a x takes value from \a s
53 template<class View>
54 forceinline TakesStatus

Callers

nothing calls this directly

Calls 4

inMethod · 0.45
assignedMethod · 0.45
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected