On Sun, Mar 1, 2009 at 3:36 PM, Roland Bock <rbock@eudoxos.de> wrote:
Ovanes,
I wonder, though, is there a standard way to write integers to a stream_buf? As far as I can see, the ostreambuf_iterator takes character classes as template arguments, only.
It it always customized numeric converter is almost always faster as writing integers to stringstream with operator<<.
Anyway these two tests perform most equally on linux/g++ (but tested very roughly). For Example on MSVC-compiler std::copy was faster as the for-loop. I assume compiler can better optimze in this case.