What purpose are the <, <=, >, >= when comparing iterators? I looked them up on this page: http://www.cplusplus.com/reference/stl/list/operators/ , but I think that just shows the operator overloads for the List type, not its iterators. Am I wrong here? If not, where do I find that documentation? If so, please correct me.
In general, is it because those comparison operators are not really useful with iterators? The loop that I was making when I noticed this is as follows (have fixed it to work using the != operator instead, but originally typed <)
for (list<string>::const_iterator itr = words.begin(); itr != words.end(); ++itr)
These operators are defined for random access iterators. List iterators are not random access iterators.
Before ask any question about iterators you should know something about the iterator category.