You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The only constraint is declaring at least the following three operators: `==`, `<` and `>` as in the example with the `foo` structure.
86
-
* Or to inherit the interfaces [xtd::icomparable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1icomparable.html) and [xtd::iequatable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1iequatable.html) as in the example with the structure `bar`.
85
+
* Or to inherit the interfaces [xtd::icomparable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1icomparable.html) and [xtd::iequatable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1iequatable.html) as in the example with the structure `bar`.
86
+
Indeed, the interface [xtd::icomparable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1icomparable.html) automatically creates comparison operators and the interface [xtd::iquatable](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1iquatable.html) also automatically creates equality and inequality operators.
0 commit comments