|
Boost Users : |
Subject: [Boost-users] Usign boost::bind with a call to member function
From: przemyslaw.sliwa_at_[hidden]
Date: 2010-11-30 13:02:42
Hello,
I would like to replace this trivial loop
for(size_t i=0; i<intersection.size(); i++)
{
domCcyEventPtrs.push_back(events->event(domCcy, intersection[i]));
}
with a call to std::transform and boost::bind.
The events object is actually a boost_shared_ptr<> of a certain type.
domCcyEventPtrs and intersection are std::vector<> objects. Can this be
done?
Cheers
___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.
Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H for additional disclosures.
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