Get the default hash function.

francesco cattoglio via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 31 05:05:52 PDT 2014


Really simple question:
how do I get the compiler-generated hash function for a given 
type?

For example:
Struct S
{
     int i;
}

can be used in an associative array. That means the compiler 
generates a "toHash" function. Is there any simple way to call it 
directly?


More information about the Digitalmars-d-learn mailing list