| 36 | namespace Gecode { |
| 37 | |
| 38 | void |
| 39 | element(Home home, IntSharedArray c, IntVar x0, IntVar x1, |
| 40 | IntPropLevel) { |
| 41 | using namespace Int; |
| 42 | if (c.size() == 0) |
| 43 | throw TooFewArguments("Int::element"); |
| 44 | GECODE_POST; |
| 45 | for (int i=0; i<c.size(); i++) |
| 46 | Limits::check(c[i],"Int::element"); |
| 47 | GECODE_ES_FAIL((Element::post_int<IntView,IntView>(home,c,x0,x1))); |
| 48 | } |
| 49 | |
| 50 | void |
| 51 | element(Home home, IntSharedArray c, IntVar x0, int offset, IntVar x1, |