Template Class UnaryFunction

Inheritance Relationships

Derived Types

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.

Subclassed by ecl::NullaryMemberFunction< C, R >, ecl::PartiallyBoundUnaryMemberFunction< C, A, R >, ecl::UnaryFreeFunction< A, R >, ecl::UnaryFunctionCopy< FunctionObject, T, Result >, ecl::UnaryFunctionReference< FunctionObject, T, Result >

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()