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: STL w/ smart pointers



----- Original Message ----- From: "Paolo Carlini" <paolo.carlini@oracle.com>
To: "Phil Bouchard" <phil@fornux.com>; <libstdc++@gcc.gnu.org>
Sent: Tuesday, July 22, 2008 3:10 AM
Subject: Re: STL w/ smart pointers



[...]


3- That leads us to the contributions from Bob Walters that we are in the process of reviewing (see recent messages to the list). I think his last attempt for the associative containers is promising and with small/minor tweaks could be adopted by libstdc++-v3. Did you study his proposal? How does it relate to yours? Please do that, in case also get in touch privately with Bob and figure out a joint proposal (after the paperwork is cleared, of course).

Well well well... the chances we end up with very similar proposals at nearly the same time are very low; but for the best. We both propagate the allocator all the way up the _Node_base class and use its localized pointer type over there.


But on the other hand I would discourage the iterator being of that pointer type and simply letting it being a raw pointer because it's an iterator quite simply ;) I mean I don't see the need adding too much overhead. Maybe allocators should contains localized iterator typedefs because they are different than pointers.

Thanks again for all the information Paolo, I am glad participating to libstdc++.


Regards, -Phil



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