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: Nonstandard allocator::pointer in containers


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.


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