Like
std::cout<<type_variable
calls cout and have that variable or content to be printed on the screen.
What if I wanted to design my own way of handling how to give output. I used function to create my own way of giving output such as
std::cout<<string(5,'-')<<std::endl;
std::cout<<"name"<<std::endl;
std::cout<<string(5,'-')<<endl;
But, I would love to have operator "<<" or similar to provide the display. And create operator to give output as
out<<some_output
I couldn't find answer to this one and it may seem inadequate study on programming, but is it possible?