Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > functor

Reply
Thread Tools

functor

 
 
stub
Guest
Posts: n/a
 
      11-02-2003
What're advantages of using "functor" in C++?


 
Reply With Quote
 
 
 
 
Mike Wahler
Guest
Posts: n/a
 
      11-02-2003
"stub" <> wrote in message
news:B5dpb.24928$...
> What're advantages of using "functor" in C++?


Your program can exploit a functor's capabilites.

-Mike


 
Reply With Quote
 
 
 
 
Ralf
Guest
Posts: n/a
 
      11-03-2003

"stub" <> schrieb im Newsbeitrag
news:B5dpb.24928$...
> What're advantages of using "functor" in C++?


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

http://www.cplusplus-kurse.de



 
Reply With Quote
 
osmium
Guest
Posts: n/a
 
      11-03-2003
stub writes:

> What're advantages of using "functor" in C++?


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.

http://groups.google.com/groups?hl=e...6f261990&rnum=
52

The link must be concatenated.

Also take a look at this, short of motivation but good for syntax.

http://groups.google.com/groups?q=fu...20&hl=en&lr=&i
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.






 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing the Functor-parameters in for_each() and transform() Alex Vinokur C++ 5 11-04-2003 04:25 PM
Abstract base class + Functor Gert Van den Eynde C++ 6 09-23-2003 05:11 PM
Strange FUNCTOR inconsistency RCS C++ 5 09-08-2003 01:45 PM
stl for_each makes two additional copies of functor Sean C++ 2 07-01-2003 07:19 AM
functor object in template class Chandra Shekhar Kumar C++ 5 06-26-2003 04:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57