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]

Unuglified name in __normal_iterator


When we want to wrap bare pointers as iterators in the various containers,
we use __normal_iterator. This has a member function called base(), which
provides the raw pointer. This class is used by vector and string.

As far as I can see, this really shouldn't be here. There is a base()
function on reverse_iterator, but as far as I can see, not anywhere else.
We use it in a couple of places (copy overloads, and a couple of string
tests). Unless someone tells me I've managed to miss where this is defined
in the standard, I'll uglify it (obviously for so_7)... hopefully noone is
using it (they shouldn't be, of course).

Chris




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