39typedef std::unary_negate<bnd_modulus>
is_even;
43 typedef std::deque<int, std::allocator<int> >
Deque;
44 typedef std::ostream_iterator<int, char, std::char_traits<char> >
Iter;
47 const Deque::value_type
a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
53 std::cout <<
"Unpartitioned values: \t\t";
54 std::copy (
d1.begin (),
d1.end (),
Iter (std::cout,
" "));
60 std::cout <<
"\nPartitioned values: \t\t";
61 std::copy (
d2.begin (),
d2.end (),
Iter (std::cout,
" "));
67 std::cout <<
"\nStable partitioned values: \t";
68 std::copy (
d1.begin (),
d1.end (),
Iter (std::cout,
" "));
69 std::cout << std::endl;
std::ostream_iterator< int, char, std::char_traits< char > > Iter
std::deque< std::string, std::allocator< std::string > > Deque
std::unary_negate< bnd_modulus > is_even
std::modulus< int > int_modulus
std::binder2nd< int_modulus > bnd_modulus