From: brianjparker (brianjparker_at_[hidden])
Date: 2002-02-19 09:29:00
--- In boost_at_y..., "danl_miller" <danl_miller_at_b...> wrote:
> abandon all hope for them in their C++98 form? I think that an
> explicit listing of the problems with allocators would stimulate
> discussion of potential solutions.
One extension to the allocator interface that I would like to see
standardised is a global function std::initial_reserve() that can be
overloaded by allocators to indicate to containers the initial size
that they should reserve (the default version would simply return -1
to indicate that the initial reserve size is unspecified).
This is essential to implement stack-based and other per-object
allocators, for example see the stack_allocator class in the files
section in "bjp_utilities*.zip" (this is a slightly older version
that doesn't use exactly the proposed interface- I will upload an
updated version soon).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk