Why is boost: fast_pool_allocator built on top of a singleton pool rather than a separate pool per allocator instance? Or, to put it another way, why only provide this, and not the option of having a pool on the allocator? Would that be a bad idea?
I have a class that uses about 10 different types of boost :: unordered_map. If I used std :: allocator, then all the memory would return to the system when it called delete, whereas now I have to call release_memory on many different types of allocators at some point. Will I be silly to steer my allocator that uses a pool instead of singleton_pool?
thanks
c ++ boost singleton pool
mr grumpy
source share