Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2004-01-06 05:05:40


Is boost::bind able to inline delayed function calls?

std::vector<std::string> vecstr;

std::for_each(vecstr.begin(), vecstr.end(),
              boost::bind(&std::string::size(), _1));

Will the call to string::size() be inlined (or inlinable)?

What if I stored the result of the bind in a boost::function before
giving it to for_each?

-- 
	Lgb

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