Click here to Skip to main content
16,019,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string buffer Pin
David Crow11-Dec-07 4:02
David Crow11-Dec-07 4:02 
GeneralRe: string buffer Pin
George L. Jackson11-Dec-07 4:23
George L. Jackson11-Dec-07 4:23 
GeneralRe: string buffer Pin
David Crow11-Dec-07 4:36
David Crow11-Dec-07 4:36 
GeneralRe: string buffer Pin
CPallini11-Dec-07 4:28
mveCPallini11-Dec-07 4:28 
GeneralRe: string buffer Pin
David Crow11-Dec-07 4:33
David Crow11-Dec-07 4:33 
GeneralRe: string buffer Pin
CPallini11-Dec-07 4:47
mveCPallini11-Dec-07 4:47 
GeneralRe: string buffer Pin
George_George10-Dec-07 15:32
George_George10-Dec-07 15:32 
GeneralFunction pointer Pin
George_George10-Dec-07 0:46
George_George10-Dec-07 0:46 
Hello everyone,


In the following statements,

<br />
template <class R, class T> class mem_fun_t : public unary_function <T*, R><br />
<br />
{<br />
<br />
R (T::*pmf)()<br />
...<br />
}<br />


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
GeneralRe: Function pointer Pin
CPallini10-Dec-07 0:57
mveCPallini10-Dec-07 0:57 
GeneralRe: Function pointer Pin
George_George10-Dec-07 1:11
George_George10-Dec-07 1:11 
GeneralRe: Function pointer Pin
CPallini10-Dec-07 2:03
mveCPallini10-Dec-07 2:03 
GeneralRe: Function pointer Pin
George_George10-Dec-07 2:27
George_George10-Dec-07 2:27 
GeneralRe: Function pointer Pin
CPallini10-Dec-07 2:37
mveCPallini10-Dec-07 2:37 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 2:39
toxcct10-Dec-07 2:39 
GeneralOK buddy! Pin
CPallini10-Dec-07 2:43
mveCPallini10-Dec-07 2:43 
JokeRe: OK buddy! Pin
toxcct10-Dec-07 2:44
toxcct10-Dec-07 2:44 
GeneralRe: OK buddy! Pin
George_George10-Dec-07 3:16
George_George10-Dec-07 3:16 
GeneralNope Pin
CPallini10-Dec-07 3:34
mveCPallini10-Dec-07 3:34 
GeneralRe: Nope Pin
George_George10-Dec-07 15:30
George_George10-Dec-07 15:30 
GeneralRe: Function pointer Pin
George_George10-Dec-07 3:15
George_George10-Dec-07 3:15 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 2:11
toxcct10-Dec-07 2:11 
GeneralRe: Function pointer Pin
George_George10-Dec-07 2:28
George_George10-Dec-07 2:28 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 2:38
toxcct10-Dec-07 2:38 
GeneralRe: Function pointer Pin
George_George10-Dec-07 16:06
George_George10-Dec-07 16:06 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 21:28
toxcct10-Dec-07 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.