#include
#include
#include
#include
#include
using namespace std;
int main()
{
int a[10] = {12, 3, 25, 7, 11, 213, 7, 123, 29, -31};
list list1(&a[0], &a[10]);
// Find the first element equal to 7 in list1:
list::iterator i = find(list1.begin(),list1.end(),7);
assert (*i == 7 && *(++i) == 11);
cout << *i;
return 0;
}
/*
11
*/