Boost logo

Boost :

From: gchen (chengang31_at_[hidden])
Date: 2007-01-24 13:14:09

Michael Marcin wrote:
>> It seems like there should be a better way of doing this... i.e.
>> void DestroyAllObjects()
>> {
>> m_object_pool.destroy_all();
>> m_objects.clear();
>> }
>> Also it might be nice to iterate over all the objects in the pool (in
>> which case I wouldn't even need the m_objects vector.
>> Perhaps there is a better way to solve the problem?

It seems that pool::release_memory or purge_memory can do this.


Boost list run by bdawes at, gregod at, cpdaniel at, john at