
6 Jul
2004
6 Jul
'04
4:16 p.m.
jhopkin@reflectionsinteractive.com 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@aixigo.de, web: http://www.aixigo.de