I've been reading this book but still not 100% clear on the concept. So, please pardon me for asking such a trivial question as my only intention is to learn the basis right and not spam with trivial and/or duplicate questions.
I checked for related questions, but couldn't find the answers to my questions.
So, here goes:
This is the code snippet that is being referred to:
//s1 and s2 are objects of the std::string class
cout << "s1 is \""
<< s1
<< "\"; s2 is \""
<< s2
<< '\"';
This is what the author has to say about it:
We now output these two string objects, using cout and operator
<<, which the string class designers overloaded to handle string objects.
Now then, overloaded? Does he mean that it's being overloaded as to accept two different arguments (string objects - s1/s2 and string literals - the stuff in " ") and perform the same function? Is my understanding right? Is that all it's getting overloaded with?