As I see in C++ books, all of them using != operator to check that the vector is end or not.
example:
Is it possible if we use itr < vec.end() instead ????Code:std::vector<int>::iterator itr; for ( itr = vec.begin(); itr != vec.end(); ++itr )
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 21
Thread: iterate through std::vector ?Threaded View
|
Click Here to Expand Forum to Full Width |