In the description of bind1st it says the following (http://stdcxx.apache.org/doc/stdlibref/bind1st.html):
"For example, you could use the count_if() algorithm to count all elements in a vector that are less than or equal to 7, using the following:
count_if(v.begin, v.end, bind1st(greater<int>(),7),
This function adds one to littleNums each time the element is greater than 7."
The last sentence should of course read: This function adds one to littleNums each time the element is less than 7.