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

Function Documentation

template<typename C, typename A, typename R>
PartiallyBoundUnaryMemberFunction<C, A, R> ecl::generateFunctionObject(R (C::* function)(A), C &c)

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

Overloaded function type, this particular overload generates a unary function object by binding the class instance but not the argument to a unary member function.

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.

Parameters:
  • function – : the void member function.

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

Returns:

PartiallyBoundUnaryMemberFunction<C,R> : nullary function object.