std::equivalence_relation(3)
π std::equivalence_relation(3) π
okay bestie, welcome to the std::equivalence_relation page from the C++ Standard Libary manual β yes, thatβs the manual name and weβre keeping it exactly π
π NAME π
std::equivalence_relation β std::equivalence_relation
yes, the name is the name, no cap π iconic behavior honestly π
π¦ Synopsis π¦
Defined in header <concepts>
template< class R, class T, class U > (since C++20)
concept equivalence_relation = std::relation<R, T, U>;
The concept equivalence_relation<R, T, U> specifies that the relation R imposes an equivalence relation on its arguments. periodt π«
π§ Semantic requirements π§
A relation r is an equivalence relation if:
- it is reflexive: for all
x,r(x, x)istrue; - it is symmetric: for all
aandb,r(a, b)istrueif and only ifr(b, a)istrue; - it is transitive:
r(a, b) && r(b, c)impliesr(a, c).
like yes, those three little rules are doing the whole job and they ate π₯
π Notes π
The distinction between relation and equivalence_relation is purely semantic.
thatβs the note, bestie β purely semantic, no extra drama in the wording π«Άβ¨
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::equivalence_relation(3) β bye bestie, go be semantically slay πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms