This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Is any support planned for non-equal allocator instances?
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Jonathan Lennox <lennox at cs dot columbia dot edu>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 02 Dec 2005 23:31:58 +0100
- Subject: Re: Is any support planned for non-equal allocator instances?
- References: <17296.51357.256524.204414@metro-north.cs.columbia.edu>
Jonathan Lennox wrote:
Is any such support planned for libstdc++?
I gather that you missed some recent exchanges... ;)
Actually, and as already pointed out by Matt on this list time ago, all
the containers *already* support unequal allocators, with the only
weakness in swap, which doesn't. For 4.2 we are certainly going to fix
that, in other terms, implement Option 3 in DR 431. Also, performance
together with unequal allocators will improve a bit (e.g., internally,
consistently passing around allocators by reference).
In 4.1.0, you will find Option 3 implemented for both bases of
ext/vstring.h (and allocators passed around by reference too).
Paolo.