
1 Feb
2006
1 Feb
'06
8:08 p.m.
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