apply

Iterate this dsymbol or members of this scoped dsymbol, then call fp with the found symbol and params.

int
apply
(,
int function
(,
void*
)
fp
,
void* ctx
)

Parameters

symbol Dsymbol

the dsymbol or parent of members to call fp on

fp int function
(,
void*
)

function pointer to process the iterated symbol. If it returns nonzero, the iteration will be aborted.

ctx void*

context parameter passed to fp.

Return Value

Type: int

nonzero if the iteration is aborted by the return value of fp, or 0 if it's completed.

Meta