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



Ryszard Kabatek wrote:

> I wrote an iterator class for std::vector<> and std::basic_string<>.
> 
> If You mean it's OK I will make a patch.

It looks good.  Before we can use it we need to go through basic_string<> 
and find the (many) places where it abuses the iterator as a pointer, and 
clean those up.  Nowadays, BTW, we have to derive iterator classes from 
std::iterator<>.

Nathan Myers
ncm@cantrip.org