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

Method in

gecode/int/var-imp/int.hpp:285–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 */
284
285 forceinline bool
286 IntVarImp::in(int n) const {
287 if ((n < dom.min()) || (n > dom.max()))
288 return false;
289 return (fst() == nullptr) || in_full(n);
290 }
291 forceinline bool
292 IntVarImp::in(long long int n) const {
293 if ((n < dom.min()) || (n > dom.max()))

Callers

nothing calls this directly

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected