Template Function ecl::generateFunctionObject(R(*)())

Function Documentation

template<typename R>
NullaryFreeFunction<R> ecl::generateFunctionObject(R (*function)())

Generate a nullary function object from a void global/static function.

Overloaded function type, this particular overload generates a nullary function object from a void global/static function.

See also

FunctionObjects.

Template Parameters:

R – : the return type.

Parameters:

function – : the void global/static function.

Returns:

NullaryFreeFunction<R> : nullary function object.