Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
EqualityComparable
Description
A type is EqualityComparable if objects of that type can be compared for equality using operator==, and if operator== is an equivalence relation.
Refinement Of
Associated Type(s)
Notation
XA type that is a model of EqualityComparable
x, y, zObject of type X
Definitions
Valid Expressions
NameExpressionType requirementsReturn type
Equalityx == y Convertible to bool
Inequalityx != y Convertible to bool
Expression Semantics
NameExpressionPreconditionSemanticsPostcondition
Equalityx == yx and y are in the domain of ==  
Inequalityx != yx and y are in the domain of ==Equivalent to !(x == y) 
Complexity Guarantee(s)
Invariants
Identity&x == &y implies x == y
Reflexivityx == x
Symmetryx == y implies y == x
Transitivityx == y and y == z implies x == z
Type(s) Modeling this Concept
  • int
  • std::vector<T>
Notes
See Also