Name

unary_function class template — Base class for unary functionals

Synopsis

template <typename Arg, typename Result>
struct unary_function {
  typedef Arg argument_type;
  typedef Result result_type;
};

The unary_function template is a base class for all the function classes that represent unary operations. It provides standard names for the argument and result types.

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.