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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -