cpp
#include <iostream>
#include <vector>
#include <functional>
#include <algorithm>
using namespace std;
int main()
{
int ia [] = { 10,20,5,55,25 };
vector<int,allocator<int>> v(ia, ia + 6);
cout << count_if(v.begin(), v.end(), not1(
bind2nd(less<int>(), 40)
)
);
}