
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