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 number1.9
, version1.11
is 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
true
iflhs
is a lower version thanrhs
;false
otherwise.