Concept LessThanComparable
LessThanComparable
LessThanComparable 型别必须有 <,
>, <=, and >= operators 。Notation(符号)
- X
- A type playing the role of comparable-type in the LessThanComparable concept.
-
x,y, - Objects of type X
Valid expressions(有效表达式)
| Name | Expression | Type | Semantics |
|---|---|---|---|
Less than | x <> | Convertible to bool | Determine if one value is less than another. |
Less than or equal | x <= y | Convertible to bool | Determine if one value is less than or equal to another. |
Greater than | x > y | Convertible to bool | Determine if one value is greater than another. |
Greater than or equal to | x >= y | Convertible to bool | Determine if one value is greater than or equal to another. |

没有评论:
发表评论