The OpenD Programming Language

ValueType

Get the Value type of an Associative Array.

import std.traits;
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