I was just asking if you can create your own cout<< like object in C++. most people confuse my question with operator overloading <<. But no, i dont want to implement my own << operator so that when users print my object i can control what they get. But basically i want to implement like this:
something << some_given << some_end; Not sure if that is possible , but the iostream standard library created the cout , so my mind says "Why not?". So i asked stackoverflow. Help would be appreciated! :)
somethingin this case?coutobject, but notcout. I think op understands about how to useoperator<<on different objects (e.g. output to file etc), but wants to make acoutthat isn'tcout.