Parameter

Members

Functions

isLazyArray
Type isLazyArray()

Determine if parameter is a lazy array of delegates. If so, return the return type of those delegates. If not, return NULL.

Static functions

_foreach
int _foreach(Parameters* parameters, scope ForeachDg dg, size_t* pn = null)

Expands tuples in args in depth first order. Calls dg(void *ctx, size_t argidx, Parameter *arg) for each Parameter. If dg returns !=0, stops and returns that value else returns 0. Use this function to avoid the O(N + N^2/2) complexity of calculating dim and calling N times getNth.

dim
size_t dim(Parameters* parameters)

Determine number of arguments, folding in tuples.

getNth
Parameter getNth(Parameters* parameters, size_t nth, size_t* pn = null)

Get nth Parameter, folding in tuples.

isTPL
int isTPL(Parameters* parameters)

Determine if parameter list is really a template parameter list (i.e. it has auto or alias parameters)

Meta