Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-14 07:11:44

From: <nbecker_at_[hidden]>
> Maybe there is a simple answer to this, but what do I do if I want to
> bind e.g. the first 2 args to a 3-arg function? Is there a
> generalized bind? Or do I have to write my own specialized version?

#include <boost/bind.hpp>

void three_arg_function(int, int, int);

boost::bind(three_arg_function, x, y, _1);

Bind will hopefully be a part of the next boost release.

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at