Jump to content

C++ Language/Std/Iostreams/StreamingCustomTypes

From Wikibooks, open books for an open world

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