Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
element
Function · 0.70
Calls
2
post
Function · 0.50
fail
Method · 0.45
Tested by
no test coverage detected