C++ Language/Std/Iostreams/StreamingCustomTypes

From Wikibooks, open books for an open world
Jump to navigation Jump to search

To enable std::cout << oVar; where oVar has a custom type, you would need to implement an overload of the stream-operator operator<<().

Additional information about streaming custom types