any system defined user type past to ostream object is converted to a string or char* ?
like cout<<4<<\"Hello World\";
works perfectly fine, how
is the << operator overloaded for each and every type?
yes
is there a way to achieve it through just one generic overloaded function?
this question doesn't make sense .. do you want just one function, or do you want an overloaded function?