Overriding ostream << for cout
Overriding ostream << for cout
class Test {
friend std::ostream& operator <<(std::ostream& stream, const Test& test);
};
std::ostream& Test::operator <<(std::ostream& stream, const Test& test) {
stream << "some value";
return stream;
}