| 82 | } |
| 83 | template<class I> |
| 84 | static bool in(int i, I& c, bool eq=false) { |
| 85 | if (eq && i==Gecode::Set::Limits::max+1) |
| 86 | return true; |
| 87 | Iter::Ranges::Singleton s(i,i); |
| 88 | return Iter::Ranges::subset(s,c); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// %Test for equality with a range |