© { JSL }
98
operator Families
·
some operators have natural partners
w
you can't have one without the other
struct
Meter
{
public static
bool operator
== (Meter lhs, Meter rhs)
...
public static
bool operator
!= (Meter lhs, Meter rhs)
...
}
true false
== !=
< >
<= >=