|
|
Defined in header <compare> | ||
inlinenamespace/* unspecified */{ inlineconstexpr/* unspecified */ partial_order=/* unspecified */; | (since C++20) | |
Call signature | ||
template<class T,class U> requires/* see below */ | ||
Compares two values using 3-way comparison and produces a result of typestd::partial_ordering
.
Lett andu be expressions andT
andU
denotedecltype((t)) anddecltype((u)) respectively,std::partial_order(t, u) isexpression-equivalent to:
std::partial_order
,The namestd::partial_order
denotes acustomization point object, which is a constfunction object of aliteralsemiregular
class type. SeeCustomizationPointObject for details.
This section is incomplete Reason: no example |
(C++20) | the result type of 3-way comparison that supports all 6 operators, is not substitutable, and allows incomparable values (class)[edit] |
(C++20) | performs 3-way comparison and produces a result of typestd::strong_ordering (customization point object)[edit] |
(C++20) | performs 3-way comparison and produces a result of typestd::weak_ordering (customization point object)[edit] |
performs 3-way comparison and produces a result of typestd::partial_ordering , even ifoperator<=> is unavailable(customization point object)[edit] |