| 261 | } |
| 262 | |
| 263 | inline bool operator< (const dlib::rectangle& b) const |
| 264 | { |
| 265 | if (left() < b.left()) return true; |
| 266 | else if (left() > b.left()) return false; |
| 267 | else if (top() < b.top()) return true; |
| 268 | else if (top() > b.top()) return false; |
| 269 | else if (right() < b.right()) return true; |
| 270 | else if (right() > b.right()) return false; |
| 271 | else if (bottom() < b.bottom()) return true; |
| 272 | else if (bottom() > b.bottom()) return false; |
| 273 | else return false; |
| 274 | } |
| 275 | |
| 276 | private: |
| 277 | long l; |