9 #include "fei_macros.hpp"
11 #include "fei_Pool_alloc.hpp"
12 #include "fei_Pool.hpp"
17 struct fei_map_holder {
18 std::map<size_t,fei_Pool*> fei_mem_pools;
22 std::map<size_t,fei_Pool*>::iterator
23 iter = fei_mem_pools.begin(),
24 iter_end = fei_mem_pools.end();
25 for(; iter != iter_end; ++iter) {
31 static fei_map_holder fmh;
33 fei_Pool* get_fei_mem_pool(
size_t n)
35 std::map<size_t,fei_Pool*>::iterator
36 iter = fmh.fei_mem_pools.find(n);
38 if (iter == fmh.fei_mem_pools.end()) {
39 fei_Pool* new_pool =
new fei_Pool(n);
40 fmh.fei_mem_pools.insert(std::make_pair(n,new_pool));