11class strong_ordering {
13 static strong_ordering
const less;
14 static strong_ordering
const equivalent;
15 static strong_ordering
const equal;
16 static strong_ordering
const greater;
18 constexpr friend auto operator==(strong_ordering v, strong_ordering w) ->
bool {
return v.m_value == w.m_value; }
19 constexpr friend auto operator==(strong_ordering v,
int) ->
bool {
return v.m_value == 0; }
21 constexpr friend auto operator<(strong_ordering v,
int) ->
bool {
return v.m_value < 0; }
22 constexpr friend auto operator<(
int, strong_ordering v) ->
bool {
return v.m_value > 0; }
24 constexpr friend auto operator<=(strong_ordering v,
int) ->
bool {
return v == 0 || v < 0; }
25 constexpr friend auto operator<=(
int, strong_ordering v) ->
bool {
return v == 0 || 0 < v; }
27 constexpr friend auto operator>(strong_ordering v,
int) ->
bool {
return 0 < v; }
28 constexpr friend auto operator>(
int, strong_ordering v) ->
bool {
return v < 0; }
30 constexpr friend auto operator>=(strong_ordering v,
int) ->
bool {
return 0 <= v; }
31 constexpr friend auto operator>=(
int, strong_ordering v) ->
bool {
return v <= 0; }
33 constexpr friend auto operator<=>(strong_ordering v,
int) -> strong_ordering {
return v; }
34 constexpr friend auto operator<=>(
int, strong_ordering v) -> strong_ordering {
35 return strong_ordering(
char(-v.m_value));
38 constexpr operator partial_ordering()
const {
return partial_ordering(m_value); }
39 constexpr operator weak_ordering()
const {
return weak_ordering(m_value); }
42 explicit constexpr strong_ordering(
char value) : m_value(
value) {}
56using std::strong_ordering;
60using types::strong_ordering;
constexpr auto operator==(Duration< Rep1, Period1 > const &a, Duration< Rep2, Period2 > const &b) -> bool
Definition duration.h:108
constexpr auto operator<=>(Duration< Rep1, Period1 > const &a, Duration< Rep2, Period2 > const &b)
Definition duration.h:115
constexpr auto equal
Definition equal.h:46
constexpr auto less
Definition less.h:23
constexpr auto value
Definition value.h:34
constexpr auto greater
Definition greater.h:23
CompareOutcome
Definition compare_outcome.h:5
@ Less
Definition compare_outcome.h:5
@ Greater
Definition compare_outcome.h:5
@ Equal
Definition compare_outcome.h:5
Definition zstring_parser.h:9
Definition enable_generate_structed_bindings.h:46