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

Function Documentation

template<typename A, typename R>
UnaryFreeFunction<A, R> ecl::generateFunctionObject(R (*function)(A))

Generate a unary function object from a unary global/static function.

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

See also

FunctionObjects.

Template Parameters:
  • A – : the function’s argument type.

  • R – : the function’s return type.

Parameters:

function – : the unary global/static function.

Returns:

UnaryFreeFunction<R> : unary function object.