Template Function ecl::generateFunctionObject(R(*)(A), I&)

Function Documentation

template<typename A, typename R, typename I>
BoundUnaryFreeFunction<A, R> ecl::generateFunctionObject(R (*function)(A), I &a)

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

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

See also

FunctionObjects.

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

  • R – : the return type.

  • I – : a mask for the function’s argument type.

Parameters:
  • function – : the void global/static function.

  • a – : the argument value to bind.

Returns:

BoundUnaryFreeFunction<A,R> : nullary function object.