C
Christopher
Admittedly, I've never had to worry about making a custom allocator. I
think that is what I need. I need to replace a broken buffer, where it
looks like the only real goal was to allocate large chunks of storage
at a time instead of every insertion.
Where do I start?
It isn't standard or documented how much a string allocates when an
insertion causes it to run out of space, is it?
I've heard things like "double the current."
If I want to the string to allocate space for 50,000 elements at a
time, every time? How do I go about that.
think that is what I need. I need to replace a broken buffer, where it
looks like the only real goal was to allocate large chunks of storage
at a time instead of every insertion.
Where do I start?
It isn't standard or documented how much a string allocates when an
insertion causes it to run out of space, is it?
I've heard things like "double the current."
If I want to the string to allocate space for 50,000 elements at a
time, every time? How do I go about that.