#include#include #include #include class PrintInt {public: void Print(int i);};void PrintInt::Print(int i) { std::cout << i << std::endl;}int main(int argc, char* argv[]) { std::vector vecs; for(int i = 0; i<20; i++) { vecs.push_back(10+i); } PrintInt p; std::for_each(vecs.begin(),vecs.end(),boost::bind(&PrintInt::Print,&p,_1));}