| 109 | |
| 110 | template<class I, class J> |
| 111 | forceinline bool |
| 112 | disjoint(I& i, J& j) { |
| 113 | // Are i and j disjoint? |
| 114 | while (i() && j()) |
| 115 | if (j.max() < i.min()) { |
| 116 | ++j; |
| 117 | } else if (i.max() < j.min()) { |
| 118 | ++i; |
| 119 | } else { |
| 120 | return false; |
| 121 | } |
| 122 | return true; |
| 123 | } |
| 124 | |
| 125 | template<class I, class J> |
| 126 | forceinline CompareStatus |
no test coverage detected