
24 Mar
2007
24 Mar
'07
12:34 a.m.
Marco wrote:
(1) evaluate the need for a specific allocator because std::allocator doesn't provide a reallocate method, and growing allocated space could be a better policy than a create/destroy policy;
Ion GaztaƱaga has made a proposal to the C++ standard to enhance standard allocators to support in-place growing and shrinking. He calls those "version 2" allocators. Maybe you could simply use that interface.