40 typedef std::vector<int, std::allocator<int> >
Vector;
42 const Vector::value_type
a1[] = { 0, 1, 2, 2, 3, 4, 2, 2, 6, 7 };
43 const Vector::value_type
a2[] = { 6, 4 };
50 Vector::const_iterator it1 =
51 std::find_first_of (
v1.begin (),
v1.end (),
v2.begin (),
v2.end ());
53 Vector::const_iterator it2 =
54 std::find_first_of (
v1.begin (),
v1.end (),
v2.begin (),
v2.end (),
55 std::equal_to<Vector::value_type>());
58 std::ostream_iterator<Vector::value_type,
60 std::char_traits<char> >
out (std::cout,
" " );
63 std::cout <<
"For the vectors { ";
64 std::copy (
v1.begin (),
v1.end (),
out);
66 std:: cout <<
"} and { ";
67 std::copy (
v2.begin (),
v2.end (),
out);
69 std::cout <<
"}\nboth versions of find_first_of point to: "
73 return !(*it1 == *it2);
std::vector< UserClass, std::allocator< UserClass > > Vector