MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / operator <

Function operator <

utilities/olcUTIL_Geometry2D.h:486–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 // Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage
485 template<class TL, class TR>
486 inline constexpr bool operator < (const v_2d<TL>& lhs, const v_2d<TR>& rhs)
487 {
488 return (lhs.y < rhs.y) || (lhs.y == rhs.y && lhs.x < rhs.x);
489 }
490
491 template<class TL, class TR>
492 inline constexpr bool operator > (const v_2d<TL>& lhs, const v_2d<TR>& rhs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected