Get AA key and value type

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 20 02:34:14 PDT 2015


On 09/20/2015 12:47 AM, Pierre wrote:

> I see, maybe .KeyType and .ValueType should be integrated in AA.
> Or like C++ with map, make a ValueType(::value_type) field wich contain
> a pair of type.

Currently, they are templates in std.traits:

   http://dlang.org/phobos/std_traits.html#KeyType

Ali



More information about the Digitalmars-d-learn mailing list