Function Object Bases

To simplify the process of writing custom function objects, the Standard Library provides two classes that serve as base classes of such objects: std::unary_function and std::binary_function. Both are declared in the header . As the names suggest, unary_function serves as the base of function objects taking one argument and binary_function