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

Function operator <

olcPixelGameEngine.h:902–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900 // Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage
901 template<class TL, class TR>
902 inline constexpr bool operator < (const v_2d<TL>& lhs, const v_2d<TR>& rhs)
903 {
904 return (lhs.y < rhs.y) || (lhs.y == rhs.y && lhs.x < rhs.x);
905 }
906
907 template<class TL, class TR>
908 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