I found that binary_function is removed from C++11. I am wondering why. C++98: template <class T> struct …