pointer_to_unary_function class template — Functional for a pointer to a unary function
template <typename Arg, typename Rtn> class pointer_to_unary_function : public unary_function<Arg, Rtn> { public: explicit pointer_to_unary_function(Result (*f)(Arg)); Rtn operator( )(Arg x) const; };
The pointer_to_unary_function
class template
is a function object that wraps a pointer to a function, in which
the function is an ordinary (nonmember) function that takes one
argument. The ptr_fun
function
template is the most convenient way to create a pointer_to_unary_function
object.