2005/11/04

Boost Concept EqualityComparable

Concept EqualityComparable

EqualityComparable

Description(描述)

Equality Comparable 型别必须有 == 和 != operators 。

Notation(符号)

X
A type playing the role of comparable-type in the EqualityComparable concept.
x, y,
Objects of type X

Valid expressions(有效表达式)

Name Expression Type

Equality test

x == y

Convertible to bool

Inequality test

x != y

Convertible to bool

Models

  • int
  • std::vector

没有评论: