I know there are string tokenizers but is there an "int tokenizer"?
For example, I want to split the string "12 34 46" and have:
list[0]=12
list[1]=34
list[2]=46
In particular, I’m wondering if Boost::Tokenizer does this. Although I couldn’t find any examples that didn’t use strings.
Yes there is: use a stream, e.g. a
stringstream:Alternatively, you can also use STL algorithms and/or iterator adapters combined with constructors: