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

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -