This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Nonstandard allocator::pointer in containers
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Phil Endecott <phil_kqzdh_endecott at chezphil dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 23 May 2005 18:03:49 +0200
- Subject: Re: Nonstandard allocator::pointer in containers
- References: <4291F686.5060809@chezphil.org>
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.