Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-10-22 10:09:12


Eric Niebler wrote:
>
> utf8_string str;
> str.reserve(some_big_number);
>
> ifstream file("utf8.txt");
> istreambuf_iterator<char8_t> begin(file), end;
>
> std::copy( begin, end, back_inserter(str) );
>
>
> This can't throw if you want people to use your string class.

utf8_string str( begin, end );


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