22 Jul
2009
22 Jul
'09
5:57 p.m.
--- On Sat, 7/18/09, Robert Jones wrote:
Hi All
I'm very much a Fusion newbie, just getting may head around it, so a really basic question!
From the intro page, when we write
#include
#include vector
stuff for_each(stuff, print_xml()); am I correct in believing that there is no loop involved in the for_each, and that this resolves, at compile time, to a linear list of function calls?
Yes. IIRC, it resolves to the equivalent of: print_xml()(int()); print_xml()(char()); print_xml()(std::string()); HTH, Cromwell D. Enage