Nonstandard allocator::pointer in containers

Paolo Carlini pcarlini@suse.de
Mon May 23 16:03:00 GMT 2005


Phil Endecott wrote:

> I've asked about this on comp.lang.c++ (e.g. here:
> http://groups-beta.google.com/group/comp.lang.c++/browse_frm/thread/2c24ad7a7a5cce65/051e738e0f1a8808?hl=en#051e738e0f1a8808
>
> and am told that the standard only requires containers to work with
> allocators that define pointer as T*.

Just wanted to add that, in my reading of the standard, we are really
talking about an extension: among the requirements for allocator itself
(20.1.5), there is 20.1.5/4 that says that the typedef member pointer is
-required- to be T*.

Paolo.



More information about the Libstdc++ mailing list