What're advantages of using "functor" in C++?
functor
Collapse
This topic is closed.
X
X
-
stubTags: None -
Mike Wahler
Re: functor
"stub" <stub@asof.co m> wrote in message
news:B5dpb.2492 8$Ec1.2249413@b gtnsc05-news.ops.worldn et.att.net...[color=blue]
> What're advantages of using "functor" in C++?[/color]
Your program can exploit a functor's capabilites.
-Mike
-
Ralf
Re: functor
"stub" <stub@asof.co m> schrieb im Newsbeitrag
news:B5dpb.2492 8$Ec1.2249413@b gtnsc05-news.ops.worldn et.att.net...[color=blue]
> What're advantages of using "functor" in C++?[/color]
A functor has many advantages: it can be the OO equivalent to a callback
function.
In can be a "Command" and also a "Strategy".
Ralf
Comment
-
osmium
Re: functor
stub writes:
[color=blue]
> What're advantages of using "functor" in C++?[/color]
This is a link to the most down to earth example I could find. I am not
real pleased with it, but it looks OK if you have the necessary background.
52
The link must be concatenated.
Also take a look at this, short of motivation but good for syntax.
e=UTF-8&sa=N&tab=wg
Scroll down to Shiva, a familiar name.
If you continue to search you will find Coplien mentioned a lot; I have the
book but don't find it particularly helpful.
Your best bet would seem to be Usenet rather than the generalized Web.
Comment
Comment