core.internal.hash
Written in the D programming language. This module provides functions to uniform calculating hash values for different types
Copyright
Copyright Igor Stepanov 2013-2013.
Functions 22
fn
size_t hashOf(T)(auto ref T val, size_t seed = 0) if (is(T == enum) && !__traits(isScalar, T))fn
size_t hashOf(T)(scope const auto ref T val, size_t seed = 0) if (!is(T == enum) && __traits(isStaticArray, T) && canBitwiseHash!T)fn
size_t hashOf(T)(auto ref T val, size_t seed = 0) if (!is(T == enum) && __traits(isStaticArray, T) && !canBitwiseHash!T)fn
size_t hashOf(T)(scope const T val, size_t seed = 0) if (is(T == S[], S) && (__traits(isScalar, S) || canBitwiseHash!S))fn
size_t hashOf(T)(T val, size_t seed = 0) if (is(T == S[], S) && !(__traits(isScalar, S) || canBitwiseHash!S))fn
size_t hashOf(T)(scope const T val) if (__traits(isScalar, T) && !is(T == __vector)) @trusted @nogc nothrow purefn
size_t hashOf(T)(scope const T val, size_t seed) if (__traits(isScalar, T) && !is(T == __vector)) @trusted @nogc nothrow purefn
size_t hashOf(T)(scope const T val, size_t seed = 0) if (is(T == __vector)) @safe @nogc nothrow purefn
size_t hashOf(T)(scope const T val) if (!is(T == enum) && is(T : typeof(null))) @trusted @nogc nothrow purefn
size_t hashOf(T)(scope const T val, size_t seed) if (!is(T == enum) && is(T : typeof(null))) @trusted @nogc nothrow purefn
size_t hashOf(T)(scope const auto ref T val, size_t seed = 0) if (!is(T == enum) && (is(T == struct) || is(T == union))
&& !is(T == const) && !is(T == immutable)
&& canBitwiseHash!T)fn
size_t hashOf(T)(auto ref T val) if (!is(T == enum) && (is(T == struct) || is(T == union))
&& !canBitwiseHash!T)fn
size_t hashOf(T)(auto ref T val, size_t seed) if (!is(T == enum) && (is(T == struct) || is(T == union))
&& !canBitwiseHash!T)fn
size_t hashOf(T)(scope auto ref T val, size_t seed = 0) if (!is(T == enum) && (is(T == struct) || is(T == union))
&& (is(T == const) || is(T == immutable))
&& canBitwiseHash!T && !canBitwiseHash!(Unconst!T))fn
size_t hashOf(T)(scope const T val, size_t seed = 0) if (!is(T == enum) && is(T == delegate)) @trusted @nogc nothrow purefn
size_t hashOf(T)(scope const T val) if (!is(T == enum) && (is(T == interface) || is(T == class))
&& canBitwiseHash!T) @nogc nothrow pure @trustedfn
size_t hashOf(T)(scope const T val, size_t seed) if (!is(T == enum) && (is(T == interface) || is(T == class))
&& canBitwiseHash!T) @nogc nothrow pure @trustedfn
size_t hashOf(T)(T val) if (!is(T == enum) && (is(T == interface) || is(T == class))
&& !canBitwiseHash!T)fn
size_t hashOf(T)(T val, size_t seed) if (!is(T == enum) && (is(T == interface) || is(T == class))
&& !canBitwiseHash!T)fn
size_t hashOf(T)(T aa) if (!is(T == enum) && __traits(isAssociativeArray, T))fn
size_t hashOf(T)(T aa, size_t seed) if (!is(T == enum) && __traits(isAssociativeArray, T))Templates 4
tmplisCppClassWithoutHash(T)
tmplcanBitwiseHash(T)
tmplbytesHashAlignedBy(AlignType)
tmplbytesHashWithExactSizeAndAlignment(SizeAndAlignType)