On 2005-02-24 12:51:55 -0500, "Chris Slominski" <cjs@jlab.org> said:
[color=blue]
>
> "red floyd" <no.spam@here.dude> wrote in message
> news:WEnTd.8980$Pz7.2837@newssvr13.news.prodigy.co m...[color=green]
>>
>> template <typename ForwardIterator>
>> void Tester::DoStrings(ForwardIterator begin, ForwardIterator end)
>> {
>> *begin;
>> ++begin;
>> }[/color]
>
> Thanks for the help and I will likely use the general solution you offer.
> Just out of curiosity though, vector<string>::iterator,
> list<string>::iterator, set<string>::iterator are all typedef 'ed as some
> concrete type. Are the three concrete types related by some common ancestor
> that supports the auto-increment and dereference operator?
>[/color]
No. I suppose that they could be, on some particular platform, but you
would gain little in doing so, as standard-compliant code could never
make any use of that knowledge anyway.
--
Clark S. Cox, III
clarkcox3@gmail.com