Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2004-07-06 11:16:32


jhopkin_at_[hidden] wrote:
> The STL implementation I have been using seems to allocate a buffer on first
> insertion into any container of a given type, and frees it only when it
> feels like it (often on program shut-down).

Sounds like a pool allocator. Question: Does .clear() for your STL
return the buffer to the pool or is it still bound to the instance? What
happens in case of the .swap()-trick?

Regards, Daniel

-- 
Daniel Frey
aixigo AG - financial solutions & technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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