opEquals()
Let’s discuss how opEquals() is used for equality comparisons.
We'll cover the following...
We'll cover the following...
opEquals() for equality comparisons
This member function defines the behaviors of the == and the != operators.
The return type of opEquals is bool.
For structs, the parameter of opEquals can be defined as in. However, for speed efficiency, opEquals can be defined as a template that takes auto ref const ...