Using pool_alloc with std::map

6 May
2004
6 May
'04
2:08 p.m.
I am using boost::pool_alloc with std::map like this: typedef map<int, int, less<int>, pool_alloc<pair<int, int> > > MapT; MapT myMap; After myMap passes out of scope, I want to release unused memory from the pool. To do that, I need to get the type used to request chunks from the pool. pair<int, int> is not the answer since map uses rebind to get a different allocator. So how do I go about obtaining the correct singleton_pool interface? Your help is appreciated. -- Kevin Lin
7714
Age (days ago)
7714
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kevin Lin