carb::operator<

Defined in carb/Version.h

constexpr bool carb::operator<(const Version &lhs, const Version &rhs) noexcept

Less-than comparison operator.

Compares two versions and reports true if the left version is lower than the right.

Note

The major and minor versions are compared independently. While the number 1.11 is less than the number 1.9, version 1.11 is considered to be higher, so Version{ 1, 9 } < Version{ 1, 11 } would be true.

Parameters
  • lhs – The version on the left side of the operation

  • rhs – The version on the right side of the operation

Returns

true if lhs is a lower version than rhs; false otherwise.