Skip to content

Glossary: C++ Basics

Non-member function

Also written: non-member

A function written outside a class. `operator<<` for printing must be one, because its left side is `std::cout`, not your object.

Where the book teaches it

Related terms

Operator overloadingstd::ostream