operator<#
Fully qualified name: carb::operator<
Defined in carb/Version.h
- constexpr bool carb::operator<( ) 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.11is less than the number1.9, version1.11is considered to be higher, soVersion{ 1, 9 } < Version{ 1, 11 }would betrue.- Parameters:
lhs – The version on the left side of the operation
rhs – The version on the right side of the operation
- Returns:
trueiflhsis a lower version thanrhs;falseotherwise.