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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -