Template Class NullaryFreeFunction
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::NullaryFunction< void >
(Template Class NullaryFunction)
Class Documentation
-
template<typename R = void>
class NullaryFreeFunction : public ecl::NullaryFunction<void> Nullary function object for void global/static functions.
Creates a function object from a void global/static function.
See also
ecl::utilities::NullaryFreeFunction<void>, generateFunctionObject, FunctionObjects.
- Template Parameters:
R – : the return type.
Public Functions
-
inline NullaryFreeFunction(R (*function)())
Nullary function object constructor for global/static functions with no args.
Accepts a global/static function with no args and builds the function object around it.
- Parameters:
function – : the global/static function.
-
inline virtual ~NullaryFreeFunction()