Nonstandard allocator::pointer in containers

Paolo Carlini
Mon May 23 16:03:00 GMT 2005

Phil Endecott wrote:

> I've asked about this on comp.lang.c++ (e.g. here:
> 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*.


More information about the Libstdc++ mailing list