
Using STL Binders
You can use STL binders to use binary function objects as unary function objects in many STL algorithms which need them. Suppose you need to find the count of strings in a vector of strings who are equal to a certain strings: vector vecstr; vecstr.push_back(“aaaa”); vecstr.push_back(“bbbb”); vecstr.push_back(“zzzz”); vecstr.push_back(“bbbb”); You need