|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||
Defined in header <concepts> | ||
template<class R,class T,class U> concept strict_weak_order=std::relation<R, T, U>; | (since C++20) | |
The conceptstrict_weak_order<R, T, U> specifies that therelationR imposes a strict weak ordering on its arguments.
Contents |
A relationr is a strict weak ordering if
Under these conditions, it can be shown thate is an equivalence relation, andr induces a strict total ordering on the equivalence classes determined bye.
The distinction betweenrelation andstrict_weak_order is purely semantic.
strict_weak_order [concept.strictweakorder] strict_weak_order [concept.strictweakorder]