Several node-addon-api types define operator== and operator!= as an explicit pair, where the != is always return !operator==(other);. In C++20 the compiler synthesizes a != b from operator==, so the hand-written != overloads become redundant and can be removed. Where the comparison is plain memberwise equality, operator== itself can be = defaulted.
Regarding <=>, the only plausible type is Maybe<T> where T is ordered.
Several node-addon-api types define
operator==andoperator!=as an explicit pair, where the!=is alwaysreturn !operator==(other);. In C++20 the compiler synthesizesa != bfromoperator==, so the hand-written!=overloads become redundant and can be removed. Where the comparison is plain memberwise equality,operator==itself can be= defaulted.Regarding
<=>, the only plausible type isMaybe<T>whereTis ordered.