Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-02-01 15:08:52


> How do you set the size of the buffer. AFAIK the basic_string implementation
> is free to ask for any size memory as first allocation.
>
> e.g. gcc allocates extra space for internal data and also use some algorithm
> to optimize memory allocation. (If I remember correctly it will always round
> up to nearest multiple of 128 bytes except for small sizes.)

Good point. You are right. The allocation strategy will almost never
request the exact byte quantity.

Regards,

Ion


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