C++ Tokenizer using istream_iterator -
this question regarding answer found here.
the following tokenizes string:
string sentence = "and feel fine..."; istringstream iss(sentence); vector<string> tokens{istream_iterator<string>{iss}, istream_iterator<string>{}}; what last line mean? purpose of {}.
Comments
Post a Comment