| Customization point object(C++20) | ||||
| Exposition-only entities | ||||
(C++11) | ||||
synth-three-waysynth-three-way-result (C++20)(C++20) |
constexprauto synth-three-way=/* see below */; | (1) | (since C++20) (exposition only*) |
template<class T,class U= T> using synth-three-way-result= | (2) | (since C++20) (exposition only*) |
constexprauto synth-three-way=[]<class T,class U>(const T& t,const U& u) requires requires{{ t< u}->boolean-testable;{ u< t}->boolean-testable;}{ifconstexpr(std::three_way_comparable_with<T, U>)return t<=> u;else{if(t< u)return std::weak_ordering::less;if(u< t)return std::weak_ordering::greater;return std::weak_ordering::equivalent;}};
synth-three-way).| t, u | - | the values to be compared |
The compare result.
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values in thepair(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values in the tuple (function template)[edit] |
(C++11)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++20) | lexicographically compares the values of twoarrays(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twodeques(function template)[edit] |
(C++11)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++20) | lexicographically compares the values of twoforward_lists(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twolists(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twovectors(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twomaps(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twomultimaps(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twosets(function template)[edit] |
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20) | lexicographically compares the values of twomultisets(function template)[edit] |