This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Unuglified name in __normal_iterator
- From: caj at cs dot york dot ac dot uk
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 17 Apr 2005 18:07:13 +0100 (BST)
- Subject: 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