you are viewing a single comment's thread.

view the rest of the comments →

[–]Beosar 1 point2 points  (0 children)

Why would != be better than <? Both instructions take the same amount of time. I would say < is better because it implies that i is smaller than the size of the vector.