G
George2
Hello everyone,
In the following statements,
1. I think pmf is a type of function pointer, the return type of the
function is R and the function is a member function of type (class) T.
Is my understanding correct?
2. If yes, what is the parameter list of the function? Empty parameter
list?
3. I doubt whether it is useful to define a function pointer with
empty parameter list -- too restricted.
thanks in advance,
George
In the following statements,
Code:
template <class R, class T> class mem_fun_t : public unary_function
<T*, R>
{
R (T::*pmf)()
....
}
1. I think pmf is a type of function pointer, the return type of the
function is R and the function is a member function of type (class) T.
Is my understanding correct?
2. If yes, what is the parameter list of the function? Empty parameter
list?
3. I doubt whether it is useful to define a function pointer with
empty parameter list -- too restricted.
thanks in advance,
George