std::strict_weak_order - cppreference.com (original) (raw)

| | | | | -------------------------------------------------------------------------------------------------------------- | | ------------- | | 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

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.

[edit] References

[edit] See also