MCPcopy Create free account
hub / github.com/comaps/comaps / Less

Class Less

libs/routing_common/maxspeed_conversion.hpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181 /// @note Used as map keys compare. Doesn't make real speed comparison.
182 struct Less
183 {
184 bool operator()(SpeedInUnits const & l, SpeedInUnits const & r) const
185 {
186 if (l.m_units == r.m_units)
187 return l.m_speed < r.m_speed;
188 return l.m_units < r.m_units;
189 }
190 };
191
192 bool IsNumeric() const;
193 bool IsValid() const { return m_speed != kInvalidSpeed; }

Callers 1

GetMaxspeedMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected