Template Class UnaryFunction

Class Documentation

template<typename A, typename R = void>
class UnaryFunction

Virtual interface definition for unary function objects.

Virtual interface definition for unary function objects (i.e. functions that take a single arguments).

See also

FunctionObjects.

Template Parameters
  • A – : the argument type.

  • R – : the return type.

Public Types

typedef R result_type

The result type.

typedef A argument_type

The first argument type.

Public Functions

virtual result_type operator()(argument_type arg) = 0

Virtual function call required by unary function objects.

Virtual function call required by unary function objects.

Parameters

arg – : the argument.

inline virtual ~UnaryFunction()