hashOf

Calculates the hash value of arg with an optional seed initial value. The result might not be equal to typeid(T).getHash(&arg).

  1. size_t hashOf(T arg, size_t seed)
    version(CoreDdoc)
    size_t
    hashOf
    (
    T
    )
    (
    auto ref T arg
    ,
    size_t seed
    )
  2. size_t hashOf(T arg)

Parameters

arg T

argument to calculate the hash value of

seed size_t

optional seed value (may be used for hash chaining)

Return: calculated hash value of arg

Meta