Working of bool operator==( )

What’s the mechanism for this comparison? How does this get invoked during the call of hash function?