ValueType

Get the Value type of an Associative Array.

alias ValueType(V : V[K], K) = V

Examples

alias Hash = int[string];
static assert(is(KeyType!Hash == string));
static assert(is(ValueType!Hash == int));
KeyType!Hash str = "a"; // str is declared as string
ValueType!Hash num = 1; // num is declared as int

Meta