If your programming language supports operator overloads, you should consider implementing the equality operator.
If your programming language supports operator overloading, you should also provide an implementation of the equality and inequality operators.
So this is the equality operator, whereas the single equal sign is the assignment operator.