isHashFunction

Determines whether hasher is hash function for T, i.e. it is callable with a value of type T and returns a $(D_PSYMBOL size_t) value.

template isHashFunction (
alias hasher
T
) {}

Members

Variables

isHashFunction
enum bool isHashFunction;
Undocumented in source.

Parameters

hasher

Hash function candidate.

T

Type to test the hash function with.

Return Value

$(D_KEYWORD true) if hasher is a hash function for T, $(D_KEYWORD false) otherwise.

Examples

static assert(isHashFunction!(hash, int));

Meta