Operator overloading
Also written: operator+, operator<<, operator==
Defining what an operator such as `+` or `<<` does for your own class by writing a function named `operator+` and so on. Do it only when the meaning is obvious.
Also written: operator+, operator<<, operator==
Defining what an operator such as `+` or `<<` does for your own class by writing a function named `operator+` and so on. Do it only when the meaning is obvious.