Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-27 16:51:13


Bill Lear wrote:
> I have been searching the world in vain for a stringstream that works
> with a static buffer, and does not use the heap for memory allocation.
> We have an application that uses lots (12-16Gb) of memory. This puts
> a strain on the memory allocation routines, and when we want to create
> a small string we find that stringstream is very, very expensive, and
> sprintf into a static buffer much, much faster.
>
> Does boost provide anything like this?

No, but there is std::(i/o)strstream. It's deprecated but it should work.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net