I\'ve following class:
class A {
public:
// ctr and etc ...
A* clone(B* container);
};
Now, I\'ve a vector availableObjs
If you use Boost.Bind it might look like this:
std::transform(
availableObjs.begin(), availableObjs.end(),
back_inserter(clonedObjs),
boost::bind(boost::mem_fn(&A::clone), _1, container) );