From: John Maddock (john_at_[hidden])
Date: 2008-02-08 04:50:34


Hervé Brönnimann wrote:
> Michael: If you are allocating your container before main, you must
> know how much memory is needed at compile time, don't you? Can't you
> reserve that memory statically (e.g. a char buffer[SIZE]) and use an
> arena allocator for your statically created container? This goes for
> any container, not just the unordered ones. Just my $.02,

Or you could use operator::new to construct the container at the start of
main, and free it before main returns?

Another 2c, John.