XTE_EACH ()
Defined in header <xte/preproc/each.hpp> Expands a given function-like macro with every argument passed.
Definition
#eachSeparates expanded expressions with commas.#define XTE_EACH (_func ,... )/* ... */
#delim
Separates expanded expressions with the provided#define XTE_EACH_DELIM (_func ,_delim ,... )/* ... */
_delim eter.If no callback is passed, avoids wrapping the expressions being iterated over in parentheses.
Example
Preprocessor output:#define M (x )x ##0 XTE_EACH_DELIM (M , +,1 ,2 ,3 )
[View in Compiler Explorer]10 +20 +30