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

Function Documentation

template<typename C, typename A, typename R, typename I>
BoundUnaryMemberFunction<C, A, R> ecl::generateFunctionObject(R (C::* function)(A), C &c, const I &a)

Generate a nullary function object by binding a unary member function.

Overloaded function type, this particular overload generates a nullary function object by binding the class instance and argument to a unary member function. The const argument bind allows for binding from temporaries.

See also

FunctionObjects.

Template Parameters:
  • C – : the member function’s class type.

  • A – : the member function’s argument type.

  • R – : the member function’s return type.

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

Parameters:
  • function – : the void member function.

  • c – : the member function’s class instance.

  • a – : the argument value to bind (const).

Returns:

BoundUnaryMemberFunction<C,R> : nullary function object.