![]() |
Home | Libraries | People | FAQ | More |
LessThanComparable 可比較大小
LessThanComparable types must have <,
>, <=, and >=
operators.
可比較大小的類型必須有 <,
>, <=, 和 >=
操作符。
x, y
| Name 名字 | Expression 表達式 | Type 類型 | Semantics 語義 |
|---|---|---|---|
Less than 小於 |
x < y |
Convertible to bool 可轉換為 bool |
Determine if one value is less than another. 判斷一個值是否小於另一個值。 |
Less than or equal 小於等於 |
x <= y |
Convertible to bool 可轉換為 bool |
Determine if one value is less than or equal to another. 判斷一個值是否小於等於另一個值。 |
Greater than 大於 |
x > y |
Convertible to bool 可轉換為 bool |
Determine if one value is greater than another. 判斷一個值是否大於另一個值。 |
Greater than or equal to 大於等於 |
x >= y |
Convertible to bool 可轉換為 bool |
Determine if one value is greater than or equal to another. 判斷一個值是否大於等於另一個值。 |