|
Boost Users : |
Subject: Re: [Boost-users] Boost Function
From: Emre Turkay (emreturkay2_at_[hidden])
Date: 2009-07-14 02:53:04
Hi,
Simply, boost::function unifies ptr to function, ptr to member function
and function call operators into the same syntax. So, for example you can
create an STL container and fill it with the variables above
heterogenously and iterate over the container to call elements with the
same syntax, i.e.,
(*iterator)(arguments);
I recommend taking a look at boost::signal for a nice use case.
Take care,
emre
On Tue, Jul 14, 2009 at 02:39:22PM +0800, Wong Peter wrote:
> I try to read that and i guess it uses to store functor/function pointer for
> later callback.
>
> Am i correct ?
>
> Thanks.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net