|
Boost Users : |
Subject: Re: [Boost-users] [lambda]How can I call function of objects instd::list while using std::for_each?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-03-23 08:15:07
Ç®ÏþÃ÷:
> However, if some one know how to do this using Lambda or Bind, please tell
> me. I want to know it. thanks!
You can use one of
(_1->*&DiscardableItem::Discard)()
bind(&DiscardableItem::Discard, _1)
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