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

Function Documentation

template<typename A, typename R, typename I>
BoundUnaryFreeFunction<A, R> ecl::generateFunctionObject(R (*function)(A), const 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 (with supplied const argument). The const argument bind allows for binding from temporaries.

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

Returns:

BoundUnaryFreeFunction<A,R> : nullary function object.