MCPcopy Create free account
hub / github.com/davisking/dlib / operator<

Method operator<

dlib/geometry/rectangle.h:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 8

leftFunction · 0.85
topFunction · 0.85
rightFunction · 0.85
bottomFunction · 0.85
leftMethod · 0.45
topMethod · 0.45
rightMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected