Namespaces
Variants
Views
Actions

cpp/named req/EqualityComparable

From cppreference.com
< cpp‎ | named req
Revision as of 02:58, 12 March 2012 by Bazzy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/concept/title Template:cpp/concept/sidebar The type must work with == operator and the result should have standard semantics.


Requirements

Expression Requirements Return type
a == b
  • a == b
  • a == b iff b == a
  • if a == b and b == c then a == c

(equivalence relation)

Template:cpp or a type implicitly convertible to Template:cpp