12
for(i = 0; i<100; i++) mylist.pushback(i)
int myvar = mylist.front()
12345
iterator it = std::find(mylist.begin(), mylist.end(), myvar); if(it != mylist.end()) { ... }
1234567
iterator it_begin = mylist.begin(); ++it_begin; iterator it = std::find(it_begin, mylist.end(), myvar); if(it != mylist.end()) { ... }
1234
for( list< int >::const_iterator i = mylist.begin(); i != mylist.end(); ++i ) { // print the int cout << *i << endl; }