|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-03-08 17:34:50
> > Output most probably will look like:
> >
> > a, , v, c, d, ,
> >
> > Which should be enough to restore it back
>
> The usual way to read vector<X> _today_ is
>
> istream_iterator<X> first( is ), last;
> vector<X> v( first, last );
>
> It only works with whitespace as a separator.
Maybe we need to remedy this hmm... inflexibility. How about
boost::istream_iterator that wraps token_iterator and accepts separator?
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk