31#if defined (__IBMCPP__) && !defined (_RWSTD_NO_IMPLICIT_INCLUSION)
35# define _RWSTD_NO_IMPLICIT_INCLUSION
60 typedef std::vector<int, std::allocator<int> >
Vector;
61 typedef std::ostream_iterator<int, char, std::char_traits<char> >
Iter;
64 const Vector::value_type arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
65 Vector v (arr + 0, arr +
sizeof arr /
sizeof *arr);
68 std::copy (
v.begin (),
v.end (),
Iter (std::cout,
" "));
69 std::cout << std::endl << std::endl;
72 Vector::iterator
result = std::remove (
v.begin (),
v.end (), 7);
77 std::copy (
v.begin (),
v.end (),
Iter (std::cout,
" "));
78 std::cout << std::endl << std::endl;
81 v.erase (std::remove_if (
v.begin () + 4,
v.end (),
84 std::copy (
v.begin (),
v.end (),
Iter (std::cout,
" "));
85 std::cout << std::endl << std::endl;
88 std::remove_copy (
v.begin (),
v.end (),
Iter (std::cout,
" "), 3);
89 std::cout << std::endl << std::endl;
92 std::remove_copy_if (
v.begin (),
v.end (),
Iter (std::cout,
" "),
std::vector< UserClass, std::allocator< UserClass > > Vector
std::ostream_iterator< int, char, std::char_traits< char > > Iter
std::binder2nd< int_greater > bnd_greater
std::greater< int > int_greater