
Hi All
In the code below my objective is pass a nullary function object to apply,
and for that
nullary function object to be 'my_function()' called with each member of the
vector. How can I
recode the call to apply as a unary bind expression such that I can write
the for loop
as a for_each loop?
Thx,
- Rob.
#include <vector>
#include "boost/function.hpp"
#include "boost/bind.hpp"
void apply( boost::function

here is one of the example, maybe not the best.
#include <vector>
#include "boost/function.hpp"
#include "boost/bind.hpp"
void apply( boost::function
Thx,
- Rob.
std::vector<int> v;
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
gongyiling
-
Robert Jones