#include #include #include #include using namespace std; int main(int argc, char **argv) { int iArr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; cout << count_if(iArr, iArr + 10, bind2nd(less_equal(), 6)) << ' '; cout << count_if(iArr, iArr + 10, bind2nd(not2(greater()), 6)) << ' '; cout << count_if(iArr, iArr + 10, not1(bind2nd(greater(), 6))) << '\n'; } // Displays: 6 6 6