Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Concept LessThanComparable 可比較大小概念

LessThanComparable 可比較大小

Description 說明

LessThanComparable types must have <, >, <=, and >= operators.
可比較大小的類型必須有 <, >, <=, 和 >= 操作符。

Notation 符號

X
A type playing the role of comparable-type in the LessThanComparable concept.
可比較大小 概念中擔任可比較類型角色的類型。
x, y
Objects of type X
類型 X 的對象

Valid expressions 有效表達式

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.

判斷一個值是否大於等於另一個值。

Models 模型

  • int

PrevUpHomeNext