Defined in header <concepts> | ||
|---|---|---|
template < class R, class T, class U > concept equivalence_relation = std::relation<R, T, U>; | (since C++20) |
The concept equivalence_relation<R, T, U> specifies that the relation R imposes an equivalence relation on its arguments.
A relation r is an equivalence relation if.
x, r(x, x) is true; a and b, r(a, b) is true if and only if r(b, a) is true; r(a, b) && r(b, c) implies r(a, c). The distinction between relation and equivalence_relation is purely semantic.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/concepts/equivalence_relation