5 Feb
2010
5 Feb
'10
10:24 p.m.
Archie14 wrote:
What I am trying to achieve is to stop for_each if "getParamValue" returns false. However I can't find a way to use "return" in the second part of boost::lambda::if_, so I am using a dummy var "a" to check it after the loop completes.
My question is: what is the right way to use lambda control structure in this case?
Maybe you want std::find_if instead of std::for_each?