These macros allow to map another macro or function onto a list of arguments.
More...
|
|
#define | MAP(f, ...) EVAL(MAP1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) |
| | Applies the function macro f to each of the remaining parameters.
|
| |
|
#define | MAP_LIST(f, ...) EVAL(MAP_LIST1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) |
| | Applies the function macro f to each of the remaining parameters and inserts commas between the results.
|
| |
This is done at compile time, and will only generate the corresponding code for each call, not performing any loop.