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

Function Documentation

template<typename C, typename R>
NullaryMemberFunction<C, R> ecl::generateFunctionObject(R (C::* function)())

Generate a unary function object from a nullary member function.

Overloaded function type, this particular overload generates a unary function object from a void member function.

See also

FunctionObjects.

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

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

Parameters

function – : the void member function.

Returns

NullaryMemberFunction<C,R> : unary function object.