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

Function pair

gecode/set/element.cpp:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215
216 namespace {
217 IntVar
218 pair(Home home, IntVar x, int w, IntVar y, int h) {
219 IntVar xy(home,0,w*h-1);
220 if (Int::Element::Pair::post(home,x,y,xy,w,h) != ES_OK)
221 home.fail();
222 return xy;
223 }
224 }
225
226 void

Callers 1

elementFunction · 0.70

Calls 2

postFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected