Originally Posted by
whiteflags
>> Is there any valid usage of the iterator returned by copy() ?
Yes. I'm tempted to say use your imagination.
What if you wanted to copy two data structures into one, with only two copy calls? Suddenly the return value is useful.
couldnt it be done somewhat like this:
Code:
copy(X1.begin(), X1.end(), inserter(X3, X3.begin()));
copy(X2.begin(), X2.end(), inserter(X3, X3.end()));
Do correct me if am wrong .
Originally Posted by
phantomotap
I know you are a newbie, but in the future ask your questions about things you don't know without the fluff of commenting on things you don't understand.
I just thought of it as clarifying as to why I was asking the question in the first place. I apologize for it