Template Class BinaryFunction

Class Documentation

template<typename A1, typename A2, typename R = void>
class BinaryFunction

Virtual interface definition for binary function objects.

Virtual interface definition for binary function objects (i.e. functions that take a pair of arguments).

See also

FunctionObjects.

Template Parameters:
  • R – : the return type.

  • A1 – : the first argument type.

  • A2 – : the second argument type.

Public Types

typedef R result_type

The result type.

typedef A1 first_argument_type

The first argument type.

typedef A2 second_argument_type

The second argument type.

Public Functions

virtual result_type operator()(first_argument_type arg1, second_argument_type arg2) = 0

Virtual function call required by binary function objects.

Virtual function call required by binary function objects.

Virtual function call required by binary function objects.

Parameters:
  • arg1 – : the first argument.

  • arg2 – : the second argument.

inline virtual ~BinaryFunction()