Boost logo

Boost Users :

Subject: [Boost-users] [bind] How do I....?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-08-18 05:07:14


Use bind to call a free function on a vector of shared_ptrs?

struct A { };
void f(const A&);
std::vector<boost::shared_ptr<A> > v;

for_each(v.begin(), v.end(), boost::bind(f, ???? ) );

what goes where ???? is?

Thanks, Rob.



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