typeidHashOf

@safe nothrow pragma(inline, true)
@trusted => typeid (T).getHash(&x)
size_t
typeidHashOf
(
T
)
(
in T x
)

Examples

scope x = typeidHashOf(cast(int)17);

See Also

http://forum.dlang.org/post/o1igoc$21ma$1@digitalmars.com

Doesn't work: integers are returned as is.

Meta