Standard C++ Library Class Reference

equal_to<int>());
//
// Output results
//
cout << "For the vectors: ";
copy(v1.begin(),v1.end(),
ostream_iterator<int>(cout," " ));
cout << " and ";
copy(v2.begin(),v2.end(),
ostream_iterator<int>(cout," " ));
cout << endl << endl
<< "both versions of find_first_of point to: "
<< *it1;
return 0;
}
Output :
For the vectors: 0 1 2 2 3 4 2 2 6 7 and 6 4
both versions of find_first_of point to: 4
Warnings
If your compiler does not support default template parameters then you need to always supply
the Allocator template argument. For instance you'll have to write:
vector<int, allocator>
instead of:
vector<int>
See Also
Algorithms, adjacent_find, find, find_if, find_next, find_end