On 31 Jan 2007 20:09:21 -0800, "ga********@gmail.com" <ga********@gmail.com>
wrote:
>What would be the benefit of creating a custom allocator for an STL
container?
In an embedded system that must contend with both long uptimes and small
amounts of memory, it is often beneficial to manage dynamic memory allocation
"by hand". I'd still like to use vector, string, etc., but I'd like to
constrain how the memory is allocated (e.g. from a pool or section of memory).
-dr