ParametersOf

Evaluates to a compile-time sequence representing the parameters of Callable

Members

Aliases

ParametersOf
alias ParametersOf = AliasSeq!(Params)
Undocumented in source.
ParametersOf
alias ParametersOf = AliasSeq!(Params)
Undocumented in source.
ParametersOf
alias ParametersOf = AliasSeq!(ParametersOf!(TDgPtr))
Undocumented in source.
ParametersOf
alias ParametersOf = AliasSeq!(ParametersOf!(TFunc))
Undocumented in source.
ParametersOf
alias ParametersOf = ParametersOf!(TypedefBaseType!(Callable[0]))
Undocumented in source.

Parameters

Callable

callable type (function/delegate/function pointer) or function symbol. Represented by variadic template of length 1 to accept both types and function symbols.

Examples

void foo(int x, ref double y, char[] z) {}
alias ParametersOf!(typeof(foo)) Params;

static assert (Params.length == 3);
static assert (is(Params[0] == int));
static assert (is(Params[1] == double));
static assert (is(Params[2] == char[]));

Meta