The OpenD Programming Language

recurseTemplatePipe

@optmath
template recurseTemplatePipe (
alias Template
Args...
) {}

Examples

// import mir.ndslice.topology: map;
alias map(alias fun) = a => a; // some template
static assert (__traits(isSame, recurseTemplatePipe!(map, 2, "a * 2"), map!(map!"a * 2")));

Meta