M
Medi Montaseri
Given a stringstream object (tokens) containing
tokens << "token1 token2 token3 token4"
I'd like to extract the first token, which I do by saying
tokens >> token ; // where token is a string
And then pass the remaining portion down to a function.
If I just pass the tokens (even after removing one item from it)
to my function, I see that the entire payload is passed down.
How do I pass the remaining portion down to a function ?
ie "token2 token3 token4"
Thanks
tokens << "token1 token2 token3 token4"
I'd like to extract the first token, which I do by saying
tokens >> token ; // where token is a string
And then pass the remaining portion down to a function.
If I just pass the tokens (even after removing one item from it)
to my function, I see that the entire payload is passed down.
How do I pass the remaining portion down to a function ?
ie "token2 token3 token4"
Thanks