std::strict_weak_order
| Defined in header <concepts>
|
||
| template < class R, class T, class U > concept strict_weak_order = std::relation<R, T, U>; |
(since C++20) | |
The concept strict_weak_order<R, T, U> specifies that the relation R imposes a strict weak ordering on its arguments.
[edit] Semantic requirements
A relation r is a strict weak ordering if
- it is irreflexive: for all
x,r(x, x)is false; - it is transitive: for all
a,bandc, ifr(a, b)andr(b, c)are both true thenr(a, c)is true; - let
e(a, b)be!r(a, b) && !r(b, a), theneis transitive:e(a, b) && e(b, c)impliese(a, c).
Under these conditions, it can be shown that e is an equivalence relation, and r induces a strict total ordering on the equivalence classes determined by e.
[edit] Notes
The distinction between relation and strict_weak_order is purely semantic.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
