This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Iterator class for vector and basic_string



> const_iterators and reverse_iterators are two uses that comes to mind.
> Don't remember offhand if these are mandated for basic_string.

You can easily synthesize a reverse_iterator from a pointer using
std::reverse_iterator. In fact, this is what libstc++ v2 does.

Regards,
Martin