I am wondering what is the practical usage of unary_function? Could anyone list some practical benefits?
My question is, a class like
class Foo : public std::unary_function<class A, class B>
is always the same (could use similar implementation) to
template <class A, class B> class Foo
So we could always use the alternative approach to replace unary_function.
thanks in advance,