| 115 | } |
| 116 | |
| 117 | template<class T, class Policies> inline |
| 118 | bool in(const T& x, const interval<T, Policies>& y) |
| 119 | { |
| 120 | if (interval_lib::detail::test_input(x, y)) return false; |
| 121 | return y.lower() <= x && x <= y.upper(); |
| 122 | } |
| 123 | |
| 124 | template<class T, class Policies> inline |
| 125 | bool subset(const interval<T, Policies>& x, |