| 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; } |