[#BSLS_MACROREPEAT_SEP]
= BSLS&lowbar;MACROREPEAT&lowbar;SEP
:mrdocs:

Expand to `N` invocations of `MACRO(x)` separated by the token sequence `S`, where `x` in each invocation is the next number in the sequence from `1` to `N`&period; If `N` is `0`, then the expansion is empty&period; For example `BSLS&lowbar;MACROREPEAT&lowbar;SEP(3, XYZ, &semi;)` expands to &apos;XYZ(1) &semi; XYZ(2) &semi; XYZ(3)`&period; The behavior is undefined unless `N&apos; is a decimal integer (or is a macro that expands to a decimal integer) in the range 0 to 20&period; Note that `MACRO` is typically a macro with one argument, but may also be a function or functor&period;

== Synopsis

Declared in `&lt;bsls&lowbar;macrorepeat&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BSLS&lowbar;MACROREPEAT&lowbar;SEP(N, MACRO, S)

----


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