Iterator class for vector and basic_string

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sun Nov 1 12:45:00 GMT 1998


> 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



More information about the Libstdc++ mailing list