
8 Feb
2008
8 Feb
'08
9:50 a.m.
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.