Boost logo

Boost :

From: Falcon (boost_at_[hidden])
Date: 2005-06-21 21:30:43


Sorry if this has been asked before (I couldn't find anything, or else I
wasn't using the right searches)... How does one create a lambda
function that invokes its parameter? For example, for use with
std::for_each:

std::vector<boost::function0<void> > Methods;
std::for_each(Methods.begin(), Methods.end(), *???*)

Peregrine Falcon


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk