Template Class NullaryFunction

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.

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