Name
pointer_to_unary_function class template — Functional for a pointer to a unary function
Synopsis
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.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.