I have white-space separeted integers inside a string, e.g.:
std::string s = "1 2 33 444 0 5";
The string is well-formed: just white-space separated numbers without any letters, new-lines, etc.
How to count the number of integers in the above string in an STL way? I am looking for something "short" that will use e.g. iterators or <algorithm>.