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

Method isIn

gecode/int/branch/cbs.hpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 template<class View>
46 forceinline bool
47 CBSBrancher<View>::VarIdToPos::isIn(unsigned int var_id) const {
48 auto *hm = &static_cast<VarIdToPosO*>(object())->_varIdToPos;
49 return hm->find(var_id) != hm->end();
50 }
51
52 template<class View>
53 forceinline int

Callers 1

inbrancherMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected