|
|
|
|
|
by jwilk
2832 days ago
|
|
(I'm assuming you meant "a >= b", not "a => b".) That's still not a consistent comparison function, so the results are implementation-defined. To be consistent, it's required, among others, that if cmp(a, b) == 0 then cmp(b, a) == 0. For "a >= b", this is not always true, e.g.: » cmp(0, 1) == 0
true
» cmp(1, 0) == 0
false
|
|