|
Boost Users : |
From: Kevin Lin (kevin_at_[hidden])
Date: 2004-05-06 15:08:31
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net