inline constexpr /* unspecified */
compare_partial_order_fallback = /* unspecified */;
Call signature
template< class T, class U > requires /* see below */
constexpr std::partial_ordering
Performs three-way comparison on subexpressions t and u and produces a result of type std::partial_ordering, even if the operator <=>
is unavailable.
If std::decay_t<T> and std::decay_t<U>> are the same type, std::compare_partial_order_fallback(t, u) is expression-equivalent to:
In all other cases, std::compare_partial_order_fallback(t, u) is ill-formed, which can result in substitution failure when it appears in the immediate context of a template instantiation.
Customization point objectsThe name std::compare_partial_order_fallback
denotes a customization point object, which is a const function object of a literal semiregular
class type. See CustomizationPointObject for details.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior LWG 2114std::partial_ordering
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4