|
Boost Users : |
Subject: Re: [Boost-users] custom allocators Re:pool_alloc
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-18 10:16:57
AMDG
B Hart wrote:
> 1. when the set goes out of scope does the instance of the class get
> destroyed? As I understand, singleton only guarantees that there is
> one instance, so the implementation semantics could vary. e.g. the
> singleton is more like a class factory guaranteeing 1 instance.
> 2. When the set goes out of scope is any memory released? Setting
> the node to it's internal node type sort of implies that the memory
> has been released already.
>
The memory is released back to the pool, but not to the system, when
the set is destroyed.
> 3. "the allocator actually used by the set is using a different underlying
> pool than v"...what do you mean??? there are two pools. I'm getting confused.
>
There is one pool for each size of object.
In Christ,
Steven Watanabe
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