Re: Function Pointers
From: David Harmon (source_at_netcom.com.invalid)
Date: 05/14/04
- Next message: Thomas Matthews: "Re: Interview Questions"
- Previous message: Howard: "Re: Return by value -- primitive type vs class type"
- In reply to: Karl Heinz Buchegger: "Re: Function Pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 14 May 2004 14:49:18 GMT
On Fri, 14 May 2004 12:44:33 +0200 in comp.lang.c++, Karl Heinz
Buchegger <kbuchegg@gascad.at> wrote,
>A functor is simply a class, which has an operator()
>Thus objects of that class can be used, whenever syntactically a function
>would be called.
Provided that the caller is flexible enough about the type of the thing
it is calling. In many cases, the caller is probably a template and the
type a template parameter.
- Next message: Thomas Matthews: "Re: Interview Questions"
- Previous message: Howard: "Re: Return by value -- primitive type vs class type"
- In reply to: Karl Heinz Buchegger: "Re: Function Pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]