Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Concept EqualityComparable

EqualityComparable

Description

Equality Comparable types must have == and != 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<int>

PrevUpHomeNext