Question in using boose::tokernizer [How to tell how many tokens in a string]
Here is the code.
How can I tell how many tokens in tok? Is there a "size()" like STL containers?
Of course I can use an iterator in a 'for' loop to scan and count, but is there an Off-The-Shelf function?
typedef boost::tokenizer< boost::char_separator<char> > token;
token tok(line, sep);
cout<<tok.size()<<endl // Is there a function like this?