This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is any support planned for non-equal allocator instances?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]