
23 Mar
2007
23 Mar
'07
11:34 p.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.