I know this is not the correct place to suggest new features to the STL, but I can't find a similar group for STL. Any suggestions?
Sorry for the interruption.
P.S. In case you're wondering what the suggestion is: Add ability to use random access operators with iterators. E.g.
vector<int> intv; ... vector<int>::iterator i=intv.begin(); intv[i]++;
What do you want that last line to do? To me it looks like you could be using "(*i)++;" instead to achieve the same result.
It seems odd and confusing that iterators have pointer semantics but not random access semantics.
they do already, well, some of them at least do (of which, vector is one): http://www.sgi.com/tech/stl/RandomAccessIterator.html. In fact, look in section 4.2 here: http://www.sgi.com/tech/stl/table_of_contents.html... that should answer more questions than I can. -- Matthew Peltzer -- goochrules@gmail.com