Skip to content

Glossary: C++ Basics

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.

Where the book teaches it

Related terms

Function overloadingNon-member function