Why is it better to use \'!=\" than \'<\' in a vector loop? I just can\'t see the difference.
For vector iterators, it doesn't make any difference. In general, iterators may not support '<' just '==' and '!='. Hence, the most general way to test if you have not reached the end of the collection is to check if the iterator != container.end()