Boost logo

Boost :

From: Mehmet S. Aras (maras_at_[hidden])
Date: 2002-05-24 10:59:11


Is there any way to get the number of tokens that the tokenizer generates? I
could not find a member fuction that actually returns the size. One could
iterate thru the container and set up a counter but is there a better
alternative? I need this for validation purposes. For example, when I have
the following tokenized with '=' separator
param1 = value1
I wanna make sure that I end up having exactly 2 tokens.
Mehmet



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk