Boost logo

Boost :

Subject: Re: [boost] [Pool]: How to tag pool_allocator
From: VoidEx (VoidEx_at_[hidden])
Date: 2008-10-24 10:40:17


> That said, there doesn't seem to be any reason why we could not expose the
> tag used by pool_allocator (and fast_pool_allocator) to parameterization.
> The result might look something like this:

        template <typename T,
                  typename UserAllocator =
                      default_user_allocator_new_delete,
                  typename Mutex = boost::mutex,
                  unsigned NextSize = 32,
                  typename Tag = pool_allocator_tag>
        class pool_allocator;

> Would that do what you want?

I suppose no, because there still may be several underneath singleton_pools,
so i wouldn't be able to release all memory, allocated by this allocator.
Thanks for your reply. I will try to find other ways, how to solve it.

VoidEx


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk