[#FOLLY_PP_FOR_EACH]
= FOLLY&lowbar;PP&lowbar;FOR&lowbar;EACH
:mrdocs:

FOLLY&lowbar;PP&lowbar;FOR&lowbar;EACH

== Synopsis

Declared in `&lt;folly&sol;Preprocessor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define FOLLY&lowbar;PP&lowbar;FOR&lowbar;EACH(fn, ...)

----

== Description

Used to invoke a preprocessor macro, the name of which is passed as the first argument, once for each subsequent variadic argument&period;

At present, supports &lsqb;0, 16) arguments&period;&rsqb;

This input&colon;

&num;define DOIT(a) go&lowbar;do&lowbar;it(a)&semi; FOLLY&lowbar;PP&lowbar;FOR&lowbar;EACH(DOIT, 3, 5, 7) &num;undef DOIT

Expands to this output (with whitespace adjusted for clarity)&colon;

go&lowbar;do&lowbar;it(3)&semi; go&lowbar;do&lowbar;it(5)&semi; go&lowbar;do&lowbar;it(7)&semi;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fn*
| The macro to invoke once for each subsequent argument&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
