functor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • stub

    functor

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


  • Mike Wahler

    #2
    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


    Comment

    • Ralf

      #3
      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

      Seminarbeschreibungen zu C und C++




      Comment

      • osmium

        #4
        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

        Working...