Template Class NullaryFunction

Inheritance Relationships

Derived Types

Class Documentation

template<typename R = void>
class NullaryFunction

Virtual interface definition for nullary function objects.

Virtual interface definition for nullary function objects (i.e. functions that take no arguments).

See also

FunctionObjects.

Template Parameters:

R – : the return type.

Subclassed by ecl::BoundNullaryMemberFunction< C, R >, ecl::BoundUnaryFreeFunction< A, R >, ecl::BoundUnaryMemberFunction< C, A, R >, ecl::NullaryFreeFunction< R >, ecl::NullaryFunctionCopy< FunctionObject, Result >, ecl::NullaryFunctionReference< FunctionObject, Result >

Public Types

typedef R result_type

The result type.

Public Functions

virtual result_type operator()() = 0

Virtual function call required by nullary function objects.

inline virtual ~NullaryFunction()