Is there an easier way to achieve the effect of this function?
strong_ordering reverse(strong_ordering v) {
if (v > 0)
return strong_ordering::less;
else if (v < 0)
return strong_ordering::greater;
else
return v;
}
0
with eitherstrong_ordering::equal
orstrong_ordering::equivalent
would also work, right? – Jocose